summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-05-25 17:50:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-05-25 17:50:53 +0000
commit60a662dedcd735b404c9a04559217e83a7901dd3 (patch)
treeb6c9ad9debdcd0b1890022b8ee90acba1a0308b6 /usr.bin
parenta7ca00b3a4b137501a429a2b1595d6be2a287a2f (diff)
Nuke a redundant if statement, from Tiago Cunha.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-if-shell.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c
index fd98afb0ebd..fbae0302a2b 100644
--- a/usr.bin/tmux/cmd-if-shell.c
+++ b/usr.bin/tmux/cmd-if-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-if-shell.c,v 1.11 2011/01/26 01:54:56 nicm 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);
}