diff options
Diffstat (limited to 'src')
-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)) { |