]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove no longer needed active check from prior commit.
authorRoy Marples <roy@marples.name>
Mon, 8 Jan 2018 09:29:51 +0000 (09:29 +0000)
committerRoy Marples <roy@marples.name>
Mon, 8 Jan 2018 09:29:51 +0000 (09:29 +0000)
src/if.c

index 85535029afeae7695d0eaa225f639a8a56225d37..adeb6d921f2f91bec479a158a876495f87745106 100644 (file)
--- a/src/if.c
+++ b/src/if.c
@@ -533,9 +533,7 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
                        }
                }
 
-               if (active &&
-                   !(ctx->options & (DHCPCD_DUMPLEASE | DHCPCD_TEST)))
-               {
+               if (!(ctx->options & (DHCPCD_DUMPLEASE | DHCPCD_TEST))) {
                        /* Handle any platform init for the interface */
                        if (active != IF_INACTIVE && if_init(ifp) == -1) {
                                logerr("%s: if_init", ifp->name);