diff options
-rw-r--r-- | src/libudev/libudev-device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 1cfcbe10b6..ed9964ac44 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -722,8 +722,7 @@ static struct udev_device *udev_device_new(struct udev *udev) if (udev == NULL) { errno = EINVAL; return NULL; - } else if (!subsystem) - errno = ENODATA; + } udev_device = new0(struct udev_device, 1); if (udev_device == NULL) { |