libudev: drop unnecessary check

sd_device_get_subsystem returns -ENOENT if subsystem is not set.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-11-23 09:16:11 +01:00
parent 91540eaa5c
commit 527ead383d
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}