diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-20 22:22:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-20 23:59:29 +0200 |
commit | 4d2a7ffd5ba47da26dde13a537fd0d3adc6e126e (patch) | |
tree | 5c144b2f380c2cf3f666f43b186b462d2e358057 /src/analyze | |
parent | tree-wide: pass NULL arguments to manager_startup() directly, avoid declaring... (diff) | |
download | systemd-4d2a7ffd5ba47da26dde13a537fd0d3adc6e126e.tar.xz systemd-4d2a7ffd5ba47da26dde13a537fd0d3adc6e126e.zip |
analyze: use log_unit_error_errno()'s return value where we can
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze-verify.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c index 1f33e560ac..7f606ee24b 100644 --- a/src/analyze/analyze-verify.c +++ b/src/analyze/analyze-verify.c @@ -108,10 +108,8 @@ static int verify_socket(Unit *u) { /* This makes sure instance is created if necessary. */ r = socket_instantiate_service(SOCKET(u)); - if (r < 0) { - log_unit_error_errno(u, r, "Socket cannot be started, failed to create instance: %m"); - return r; - } + if (r < 0) + return log_unit_error_errno(u, r, "Socket cannot be started, failed to create instance: %m"); /* This checks both type of sockets */ if (UNIT_ISSET(SOCKET(u)->service)) { |