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 bbae97b72238e1333b3c3ced59bcb9ac30b75bd4..5717b8197e4bbbacc546e4e919e8db1b30aebe3c 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;