mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
f4e9270310
commit
2cf24b3978
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user