summaryrefslogtreecommitdiffstats
path: root/src/udev/udevadm-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-08-22 06:15:46 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-08-22 21:57:39 +0200
commit3938f568a2bc224651271b9c25204db8d8bd4e18 (patch)
tree85e3588f6c42c7e077625e40c313aaa03e7e7328 /src/udev/udevadm-util.c
parentcore: add IODeviceLatencyTargetSec (diff)
downloadsystemd-3938f568a2bc224651271b9c25204db8d8bd4e18.tar.xz
systemd-3938f568a2bc224651271b9c25204db8d8bd4e18.zip
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 '')
-rw-r--r--src/udev/udevadm-util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/udev/udevadm-util.c b/src/udev/udevadm-util.c
index 0e8a820a56..ff5e5d7675 100644
--- a/src/udev/udevadm-util.c
+++ b/src/udev/udevadm-util.c
@@ -8,7 +8,6 @@ struct udev_device *find_device(struct udev *udev,
const char *id,
const char *prefix) {
- assert(udev);
assert(id);
if (prefix && !startswith(id, prefix))