diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-23 09:16:11 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-23 09:16:11 +0100 |
commit | 527ead383da37d68bd8ac11d7465481c60243076 (patch) | |
tree | b84d92a734b1b334feaba15f4aee126d737bed92 /src/libudev | |
parent | 91540eaa5c636f4073955f025c4e72b1bbb4f2e9 (diff) | |
download | systemd-527ead383da37d68bd8ac11d7465481c60243076.tar.gz systemd-527ead383da37d68bd8ac11d7465481c60243076.tar.bz2 systemd-527ead383da37d68bd8ac11d7465481c60243076.zip |
libudev: drop unnecessary check
sd_device_get_subsystem returns -ENOENT if subsystem is not set.
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 19695b5ee4..1e7d774ba9 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -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; } |