summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-29 15:41:31 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-10-29 15:42:05 +0100
commitc87bc036071886feee5539ded847f1e9d72986de (patch)
tree7dfbc458ab22b21d5bb315ce54fe5913dd6d8eb5
parentb3f60b48501319e93e846bbf23881666cee947bc (diff)
main: remove redundant error check in netifd_start_process
Detected by Coverity CID 1329378 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--main.c3
1 files changed, 0 insertions, 3 deletions
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;