661545
From 9e1bc4f2d8c24ad1b257e3452212d945e1078a8f Mon Sep 17 00:00:00 2001
661545
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
661545
Date: Sat, 7 Mar 2015 15:00:22 -0500
661545
Subject: [PATCH] systemctl: remove dead check
661545
661545
r could never be less than zero.
661545
661545
CID #1271350.
661545
661545
(cherry picked from commit 2558691285b2f7b3078b43b26736fcadf3c6d194)
661545
661545
Resolves: #1694605
661545
---
661545
 src/systemctl/systemctl.c | 4 ++--
661545
 1 file changed, 2 insertions(+), 2 deletions(-)
661545
661545
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
661545
index 83c418f0b7..a55340f0a4 100644
661545
--- a/src/systemctl/systemctl.c
661545
+++ b/src/systemctl/systemctl.c
661545
@@ -4652,7 +4652,7 @@ static int cat(sd_bus *bus, char **args) {
661545
         _cleanup_strv_free_ char **names = NULL;
661545
         char **name;
661545
         bool first = true, avoid_bus_cache;
661545
-        int r = 0;
661545
+        int r;
661545
 
661545
         assert(args);
661545
 
661545
@@ -4702,7 +4702,7 @@ static int cat(sd_bus *bus, char **args) {
661545
                 }
661545
         }
661545
 
661545
-        return r < 0 ? r : 0;
661545
+        return 0;
661545
 }
661545
 
661545
 static int set_property(sd_bus *bus, char **args) {