summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-20 09:49:29 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-20 09:49:29 -0400
commit2cf24b397833998869718043fb000013b1a43832 (patch)
tree4b55b68c834c7f779b870c8a79b45722b2a91993 /src
parentf4e927031016d8fcb20dc672b1b8ff8b18b01719 (diff)
libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/libudev/libudev-device.c3
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) {