Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0d7fe45 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

floss: metrics: Trim newline from modalias

The newline should be trimmed before any comparison is done.

Bug: 256799699
Tag: #floss
Test: Manual test on Trogdor
Change-Id: Icc06373f17636478c5240d5d4158f49464fb04ab
parent d4815094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -646,7 +646,7 @@ static std::string GetChipsetInfoModuleName() {
  std::string path = base::StringPrintf(kChipsetInfoModaliasPath, adapter_index);

  if (base::ReadFileToString(base::FilePath(path), &module)) {
    return module;
    return base::CollapseWhitespaceASCII(module, false);
  }
  return "";
}