diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-17 11:30:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-17 11:30:31 +0200 |
commit | aaa2a3abf9b3f027918b60fe0d0340fcd4874291 (patch) | |
tree | 20ffef498556100193946c2bc6c5f6da51a4166d /src/update-utmp/update-utmp.c | |
parent | 22175a39e8df964b26def7988b841b348de9c97a (diff) | |
parent | 3e044c492e3ebe64f4e3175c94f9db8a62557b82 (diff) |
Merge pull request #976 from elfring/Remove_unnecessary_checks2
Delete unnecessary checks before some function calls
Diffstat (limited to 'src/update-utmp/update-utmp.c')
-rw-r--r-- | src/update-utmp/update-utmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index ea9b0c9c84..61bcf02b2f 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -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; } |