mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
libudev: drop unnecessary check
sd_device_get_subsystem returns -ENOENT if subsystem is not set.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user