chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clang: fix numerous little issues found with clang-analyzer
[elogind.git]
/
src
/
automount.c
diff --git
a/src/automount.c
b/src/automount.c
index 9843481a61c231b4783b61d0ac58238c4587974b..047af7759bbd3f706bf7a15a5bdb6f1498c8a9fd 100644
(file)
--- 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);