summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-29 11:40:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-30 13:08:54 +0200
commit86c031783ffa54513785b4b69fd506645035332e (patch)
treec6c8ed7c67dbf83e5b7fc5ed22a47bddac13f35c /common/hush.c
parent3996c942f23f091f6c1f53be1fb24baa7b731a67 (diff)
downloadbarebox-86c031783ffa54513785b4b69fd506645035332e.tar.gz
hush: remove bogus 'else'
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/hush.c')
-rw-r--r--common/hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/hush.c b/common/hush.c
index 017f96d..4e78577 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -610,7 +610,9 @@ static int run_pipe_real(struct p_context *ctx, struct pipe *pi)
rcode = run_list_real(ctx, child->group);
return rcode;
- } else if (pi->num_progs == 1 && pi->progs[0].argv != NULL) {
+ }
+
+ if (pi->num_progs == 1 && pi->progs[0].argv != NULL) {
for (i = 0; is_assignment(child->argv[i]); i++)
{ /* nothing */ }