udev: make use of new one_zero() helper where appropriate
This commit is contained in:
@@ -49,7 +49,7 @@ static int builtin_btrfs(struct udev_device *dev, int argc, char *argv[], bool t
|
||||
if (err < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
udev_builtin_add_property(dev, test, "ID_BTRFS_READY", err == 0 ? "1" : "0");
|
||||
udev_builtin_add_property(dev, test, "ID_BTRFS_READY", one_zero(err == 0));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user