summaryrefslogtreecommitdiffstats
path: root/src/libudev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-23 09:16:11 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-23 09:16:11 +0100
commit527ead383da37d68bd8ac11d7465481c60243076 (patch)
treeb84d92a734b1b334feaba15f4aee126d737bed92 /src/libudev
parentMerge pull request #10861 from yuwata/udev-list-cleanups (diff)
downloadsystemd-527ead383da37d68bd8ac11d7465481c60243076.tar.xz
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.c2
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;
}