summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-05-26 20:12:07 +0000
committerTiago Cunha <tcunha@gmx.com>2011-05-26 20:12:07 +0000
commit28427efbacbbda906f837a3140be07621d5f2934 (patch)
treec21de2112dbeb86ec2991cb6c95afcd666cc1d9c
parente14bf9bb8fb5aee94b28badcd47a28ffdd4a3f95 (diff)
Sync OpenBSD patchset 819:
Nuke a redundant if statement, from Tiago Cunha.
-rw-r--r--cmd-if-shell.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index d9dc3877..fbae0302 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-if-shell.c,v 1.12 2011-02-15 15:20:03 tcunha Exp $ */
+/* $OpenBSD: cmd-if-shell.c,v 1.12 2011/05/25 17:50:52 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -88,11 +88,7 @@ cmd_if_shell_callback(struct job *job)
return;
}
- if (cmd_list_exec(cmdlist, ctx) < 0) {
- cmd_list_free(cmdlist);
- return;
- }
-
+ cmd_list_exec(cmdlist, ctx);
cmd_list_free(cmdlist);
}