mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
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