diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-11 22:04:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-11 22:04:25 +0200 |
commit | e364ad0628b5930a671ae5be863b960f4bd748a8 (patch) | |
tree | 1427ac128d3530f696e49b6f5e482488399c9b6e /src/automount.c | |
parent | 10f8e83cbb10c73b980c9b3b895ac044e600ba0c (diff) |
clang: fix numerous little issues found with clang-analyzer
Diffstat (limited to 'src/automount.c')
-rw-r--r-- | src/automount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/automount.c b/src/automount.c index 9843481a61..047af7759b 100644 --- a/src/automount.c +++ b/src/automount.c @@ -444,6 +444,8 @@ int automount_send_ready(Automount *a, int status) { else log_debug("Sending success."); + r = 0; + /* Autofs thankfully does not hand out 0 as a token */ while ((token = PTR_TO_UINT(set_steal_first(a->tokens)))) { int k; @@ -460,8 +462,6 @@ int automount_send_ready(Automount *a, int status) { r = k; } - r = 0; - fail: if (ioctl_fd >= 0) close_nointr_nofail(ioctl_fd); |