chiark / gitweb /
systemctl: remove dead check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Mar 2015 20:00:22 +0000 (15:00 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Mar 2015 20:00:22 +0000 (15:00 -0500)
r could never be less than zero.

CID #1271350.

src/systemctl/systemctl.c

index e915f6f3cfede573c5020c084e643fa087142e06..41f7b9f7aad1ba08e6bb127b11770e45966b703a 100644 (file)
@@ -4547,7 +4547,7 @@ static int cat(sd_bus *bus, char **args) {
         _cleanup_strv_free_ char **names = NULL;
         char **name;
         bool first = true, avoid_bus_cache;
-        int r = 0;
+        int r;
 
         assert(args);
 
@@ -4597,7 +4597,7 @@ static int cat(sd_bus *bus, char **args) {
                 }
         }
 
-        return r < 0 ? r : 0;
+        return 0;
 }
 
 static int set_property(sd_bus *bus, char **args) {