diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-07-20 09:49:29 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-07-20 09:49:29 -0400 |
commit | 2cf24b397833998869718043fb000013b1a43832 (patch) | |
tree | 4b55b68c834c7f779b870c8a79b45722b2a91993 /src/libudev/libudev-device.c | |
parent | f4e927031016d8fcb20dc672b1b8ff8b18b01719 (diff) |
libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev-device.c')
-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) { |