summaryrefslogtreecommitdiff
path: root/init/block_dev_initializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init/block_dev_initializer.cpp')
-rw-r--r--init/block_dev_initializer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/init/block_dev_initializer.cpp b/init/block_dev_initializer.cpp
index 05e00edfd..9c2a7bb14 100644
--- a/init/block_dev_initializer.cpp
+++ b/init/block_dev_initializer.cpp
@@ -87,13 +87,7 @@ ListenerAction BlockDevInitializer::HandleUevent(const Uevent& uevent,
auto iter = devices->find(name);
if (iter == devices->end()) {
- auto partition_name = DeviceHandler::GetPartitionNameForDevice(uevent.device_name);
- if (!partition_name.empty()) {
- iter = devices->find(partition_name);
- }
- if (iter == devices->end()) {
- return ListenerAction::kContinue;
- }
+ return ListenerAction::kContinue;
}
LOG(VERBOSE) << __PRETTY_FUNCTION__ << ": found partition: " << name;