summaryrefslogtreecommitdiffstats
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-28 09:39:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-11 18:36:06 +0200
commit4443b1857be367b492cf74523e0842125d28ce64 (patch)
tree886fea413c27bf658b466018893321009204acb2 /src/udev/udevd.c
parentudev: use rm_rf() to remove old watch directory (diff)
downloadsystemd-4443b1857be367b492cf74523e0842125d28ce64.tar.xz
systemd-4443b1857be367b492cf74523e0842125d28ce64.zip
udev: drop unnecessary call of udev_watch_end()
As it is already called by udev_event_execute_rules().
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 25496975d5..4bb6bf3a33 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -654,9 +654,7 @@ static int worker_process_device(Manager *manager, sd_device *dev) {
/* in case rtnl was initialized */
manager->rtnl = sd_netlink_ref(udev_event->rtnl);
- r = udev_event_process_inotify_watch(udev_event, manager->inotify_fd);
- if (r < 0)
- return r;
+ udev_event_process_inotify_watch(udev_event, manager->inotify_fd);
log_device_uevent(dev, "Device processed");
return 0;