Skip to content

Commit

Permalink
modprobe: Use more inclusive language for libmodprobe (Part Deux)
Browse files Browse the repository at this point in the history
Remove blacklist

Test: none
Bug: 151950334
Merged-In: I14ed08390a7db0b4b962343c61d60230751047ce
Change-Id: I14ed08390a7db0b4b962343c61d60230751047ce

Former-commit-id: 21c02bbd4bc274a4e74fa030b0ca086bd87f9dea
  • Loading branch information
Mark Salyzyn committed Jun 19, 2020
1 parent f984eab commit 7e9b818
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libmodprobe/libmodprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ bool Modprobe::ParseBlocklistCallback(const std::vector<std::string>& args) {
auto it = args.begin();
const std::string& type = *it++;

// +Legacy
if ((type != "blocklist") && (type != "blacklist")) {
if (type != "blocklist") {
LOG(ERROR) << "non-blocklist line encountered in modules.blocklist";
return false;
}
Expand Down Expand Up @@ -334,8 +333,6 @@ Modprobe::Modprobe(const std::vector<std::string>& base_paths, const std::string

auto blocklist_callback = std::bind(&Modprobe::ParseBlocklistCallback, this, _1);
ParseCfg(base_path + "/modules.blocklist", blocklist_callback);
// Legacy
ParseCfg(base_path + "/modules.blacklist", blocklist_callback);
}

ParseKernelCmdlineOptions();
Expand Down

0 comments on commit 7e9b818

Please sign in to comment.