libudev: drop unnecessary check
sd_device_get_subsystem returns -ENOENT if subsystem is not set.
This commit is contained in:
parent
91540eaa5c
commit
527ead383d
|
@ -150,8 +150,6 @@ _public_ const char *udev_device_get_subsystem(struct udev_device *udev_device)
|
|||
r = sd_device_get_subsystem(udev_device->device, &subsystem);
|
||||
if (r < 0)
|
||||
return_with_errno(NULL, r);
|
||||
if (!subsystem)
|
||||
return_with_errno(NULL, ENODATA);
|
||||
|
||||
return subsystem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue