summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-07 15:00:22 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-07 15:00:22 -0500
commit2558691285b2f7b3078b43b26736fcadf3c6d194 (patch)
tree337b40021a7db95c539bf24c85371e6b53ce8f9e /src
parentd4ad27a104af707b20651327d7a57dd9dc780f79 (diff)
systemctl: remove dead check
r could never be less than zero. CID #1271350.
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index e915f6f3cf..41f7b9f7aa 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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) {