tree-wide: use device_in_subsystem() and device_is_devtype()

This commit is contained in:
Yu Watanabe
2023-12-23 03:52:21 +09:00
parent 3b34580d1a
commit fb53ee0a64
19 changed files with 123 additions and 260 deletions
+1 -1
View File
@@ -1267,7 +1267,7 @@ static int acquire_removable(sd_device *d) {
if (sd_device_get_parent(d, &d) < 0)
return 0;
if (sd_device_get_subsystem(d, &v) < 0 || !streq(v, "block"))
if (!device_in_subsystem(d, "block"))
return 0;
}