summaryrefslogtreecommitdiffstats
path: root/src/libudev
diff options
context:
space:
mode:
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;
}