From: Ralph Corderoy Date: Thu, 20 Oct 2016 22:30:07 +0000 (+0100) Subject: Don't `else' after return. Simplify control flow. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/320d20e5887b9f8bb40f57088d6b316f8ce9da6c?ds=sidebyside;hp=12294e455bdecfdbe0952843e012fd745a3d2044 Don't `else' after return. Simplify control flow. --- diff --git a/uip/slocal.c b/uip/slocal.c index 254744b2..772c4e2b 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1125,16 +1125,15 @@ usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) pidstatus (status, stdout, ", failed"); } return (status == 0 ? 0 : -1); - } else { - /* - * Ruthlessly kill the child and anything - * else in its process group. - */ - killpg(child_id, SIGKILL); - if (verbose) - verbose_printf (", timed-out; terminated\n"); - return -1; } + /* + * Ruthlessly kill the child and anything + * else in its process group. + */ + killpg(child_id, SIGKILL); + if (verbose) + verbose_printf (", timed-out; terminated\n"); + return -1; } }