udev: make use of new one_zero() helper where appropriate
This commit is contained in:
parent
769d324c99
commit
cd1ddd5421
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue