diff options
-rw-r--r-- | src/udev/udevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index b921442337..2b2b4aaf81 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -153,7 +153,7 @@ static void worker_cleanup(struct worker *worker) { } static void worker_unref(struct worker *worker) { - if (!worker || (-- worker->refcount) > 0) + if (!worker || --worker->refcount > 0) return; log_debug("worker ["PID_FMT"] cleaned up", worker->pid); worker_cleanup(worker); |