mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-01 00:00:00 +07:00
sd-device: get_subsystem - don't complain if a device does not have a subsystem
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
8ba53c912b
commit
3df635050b
@ -722,7 +722,8 @@ 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