From 70d232289b500300a63a4ac2c45dbe4acf15c2db Mon Sep 17 00:00:00 2001
From: Nicholas Marriott <nicm@openbsd.org>
Date: Wed, 25 May 2011 17:50:52 +0000
Subject: [PATCH] Nuke a redundant if statement, from Tiago Cunha.

---
 cmd-if-shell.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index b81985f8..f2b015d2 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -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);
 }