]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: use log_unit_error_errno()'s return value where we can
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 20:22:03 +0000 (22:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 21:59:29 +0000 (23:59 +0200)
src/analyze/analyze-verify.c

index 1f33e560acfbfb1e0a977ab2e0fa3159d327a798..7f606ee24b90c84dffa28ee0b8a1a539af544169 100644 (file)
@@ -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)) {