Sync OpenBSD patchset 819:

Nuke a redundant if statement, from Tiago Cunha.
This commit is contained in:
Tiago Cunha 2011-05-26 20:12:07 +00:00
parent e14bf9bb8f
commit 28427efbac

View File

@ -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);
}