]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/update-utmp/update-utmp.c
Bug #944: Deletion of unnecessary checks before a few calls of systemd functions
[thirdparty/systemd.git] / src / update-utmp / update-utmp.c
index ea9b0c9c8436054f2b1e7e2ab1da5814f3a3e854..61bcf02b2f27a734af77f9c39eb23cc61abc77d6 100644 (file)
@@ -286,8 +286,6 @@ finish:
                 audit_close(c.audit_fd);
 #endif
 
-        if (c.bus)
-                sd_bus_unref(c.bus);
-
+        sd_bus_unref(c.bus);
         return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }