main: remove redundant error check in netifd_start_process
authorFelix Fietkau <nbd@openwrt.org>
Thu, 29 Oct 2015 14:41:31 +0000 (15:41 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 29 Oct 2015 14:42:05 +0000 (15:42 +0100)
Detected by Coverity CID 1329378

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
main.c

diff --git a/main.c b/main.c
index bbae97b..5717b81 100644 (file)
--- 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;