]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libudev/libudev-device.c
sd-device: make sd_device_get_is_initialized() returns is_initialized by return value
[thirdparty/systemd.git] / src / libudev / libudev-device.c
index 1c3d67a8f5cf89a766f23896c20f48cbe700593a..b6ccef7d8ed8031ea80ed584de322ba1ad7f436d 100644 (file)
@@ -819,17 +819,17 @@ _public_ struct udev_list_entry *udev_device_get_sysattr_list_entry(struct udev_
  * Returns: 1 if the device is set up. 0 otherwise.
  **/
 _public_ int udev_device_get_is_initialized(struct udev_device *udev_device) {
-        int r, initialized;
+        int r;
 
         assert_return(udev_device, -EINVAL);
 
-        r = sd_device_get_is_initialized(udev_device->device, &initialized);
+        r = sd_device_get_is_initialized(udev_device->device);
         if (r < 0) {
                 errno = -r;
                 return 0;
         }
 
-        return initialized;
+        return r;
 }
 
 /**