summaryrefslogtreecommitdiffstats
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 1994b6b2d5..d3e949dae4 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1008,8 +1008,7 @@ static int event_queue_start(Manager *manager) {
assert(manager);
- if (LIST_IS_EMPTY(manager->events) ||
- manager->exit || manager->stop_exec_queue)
+ if (!manager->events || manager->exit || manager->stop_exec_queue)
return 0;
assert_se(sd_event_now(manager->event, CLOCK_MONOTONIC, &usec) >= 0);
@@ -1166,7 +1165,7 @@ static int event_queue_insert(Manager *manager, sd_device *dev) {
.state = EVENT_QUEUED,
};
- if (LIST_IS_EMPTY(manager->events)) {
+ if (!manager->events) {
r = touch("/run/udev/queue");
if (r < 0)
log_warning_errno(r, "Failed to touch /run/udev/queue, ignoring: %m");
@@ -1611,7 +1610,7 @@ static int on_post(sd_event_source *s, void *userdata) {
assert(manager);
- if (!LIST_IS_EMPTY(manager->events)) {
+ if (manager->events) {
/* Try to process pending events if idle workers exist. Why is this necessary?
* When a worker finished an event and became idle, even if there was a pending event,
* the corresponding device might have been locked and the processing of the event