diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-22 13:15:46 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-23 04:57:39 +0900 |
commit | 3938f568a2bc224651271b9c25204db8d8bd4e18 (patch) | |
tree | 85e3588f6c42c7e077625e40c313aaa03e7e7328 /src/libudev/libudev-hwdb.c | |
parent | 6ae4283cb14c4e4a895f4bbba703804e4128c86c (diff) | |
download | systemd-3938f568a2bc224651271b9c25204db8d8bd4e18.tar.gz |
libudev: accept NULL as the argument 'struct udev*' for udev_monitor_new() or friends
As udev_monitor struct or friends are now almost independent of udev
struct. So, generating these objects without udev struct is reasonable.
Diffstat (limited to 'src/libudev/libudev-hwdb.c')
-rw-r--r-- | src/libudev/libudev-hwdb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c index 45322677e9..d13cc4dfb5 100644 --- a/src/libudev/libudev-hwdb.c +++ b/src/libudev/libudev-hwdb.c @@ -40,8 +40,6 @@ _public_ struct udev_hwdb *udev_hwdb_new(struct udev *udev) { struct udev_hwdb *hwdb; int r; - assert_return_errno(udev, NULL, EINVAL); - r = sd_hwdb_new(&hwdb_internal); if (r < 0) { errno = -r; |