From 28427efbacbbda906f837a3140be07621d5f2934 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 26 May 2011 20:12:07 +0000 Subject: [PATCH] Sync OpenBSD patchset 819: Nuke a redundant if statement, from Tiago Cunha. --- cmd-if-shell.c | 8 ++------ 1 file 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 @@ -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); }