[systemd-commits] src/udev

David Herrmann dvdhrm at kemper.freedesktop.org
Wed May 6 09:59:34 PDT 2015


 src/udev/udevd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7e3c6f5f8cc8e5d2e73c96bd3fcd6decde85d66
Author: David Herrmann <dh.herrmann at gmail.com>
Date:   Wed May 6 18:59:03 2015 +0200

    udev: fix weird coding-style
    
    Eeeew!

diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 661047e..8c81ecf 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -150,7 +150,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);



More information about the systemd-commits mailing list