From: Felix Fietkau Date: Thu, 29 Oct 2015 14:41:31 +0000 (+0100) Subject: main: remove redundant error check in netifd_start_process X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c87bc036071886feee5539ded847f1e9d72986de;p=oweals%2Fnetifd.git main: remove redundant error check in netifd_start_process Detected by Coverity CID 1329378 Signed-off-by: Felix Fietkau --- diff --git a/main.c b/main.c index bbae97b..5717b81 100644 --- a/main.c +++ b/main.c @@ -173,9 +173,6 @@ netifd_start_process(const char **argv, char **env, struct netifd_process *proc) exit(127); } - if (pid < 0) - goto error; - close(pfds[1]); proc->uloop.cb = netifd_process_cb; proc->uloop.pid = pid;