mount-tool: sd_device_get_sysattr_value() returns 0 on success

This commit is contained in:
Yu Watanabe
2021-02-21 04:40:23 +09:00
parent 9520c2f62b
commit 1f22fc3828
+1 -1
View File
@@ -1197,7 +1197,7 @@ static int acquire_removable(sd_device *d) {
return 0;
for (;;) {
if (sd_device_get_sysattr_value(d, "removable", &v) > 0)
if (sd_device_get_sysattr_value(d, "removable", &v) >= 0)
break;
if (sd_device_get_parent(d, &d) < 0)