chiark / gitweb /
treewide: yet more log_*_errno + return simplifications
[elogind.git] / src / tty-ask-password-agent / tty-ask-password-agent.c
index 12b88fbff0062eb1daa9902dc3bcfa57c0962bf0..44da9a8c257852eb7c17797c9cc927c94687883c 100644 (file)
@@ -338,10 +338,8 @@ static int parse_password(const char *filename, char **wall) {
                         /* If the query went away, that's OK */
                         return 0;
 
-                if (r < 0) {
-                        log_error_errno(r, "Failed to query password: %m");
-                        return r;
-                }
+                if (r < 0)
+                        return log_error_errno(r, "Failed to query password: %m");
 
                 socket_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0);
                 if (socket_fd < 0) {