From: Yu Watanabe Date: Sun, 11 Feb 2024 16:13:50 +0000 (+0900) Subject: udev-util: use device_get_property_bool() at one more place X-Git-Tag: v256-rc1~905^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e7c8fe494533043c52e62021e7a6fa8d935a8eb;p=thirdparty%2Fsystemd.git udev-util: use device_get_property_bool() at one more place --- diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c index 4f4b675a37b..922364b0012 100644 --- a/src/shared/udev-util.c +++ b/src/shared/udev-util.c @@ -232,13 +232,11 @@ int device_is_renaming(sd_device *dev) { assert(dev); - r = sd_device_get_property_value(dev, "ID_RENAMING", NULL); + r = device_get_property_bool(dev, "ID_RENAMING"); if (r == -ENOENT) - return false; - if (r < 0) - return r; + return false; /* defaults to false */ - return true; + return r; } bool device_for_action(sd_device *dev, sd_device_action_t a) {