summaryrefslogtreecommitdiffstats
path: root/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-09-12 13:53:58 +0000
committerRoy Marples <roy@marples.name>2015-09-12 13:53:58 +0000
commit32860429a24c571cee9386129765cfbc14c89c09 (patch)
treed95e971f47e6f795836a5cf0773e495d22cd71fa /if.c
parent5cd73faeab6fb6533b2eb0dfdabf996e9d2da348 (diff)
downloaddhcpcd-32860429a24c571cee9386129765cfbc14c89c09.tar.xz
Remove some unreachable code.
Diffstat (limited to 'if.c')
-rw-r--r--if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/if.c b/if.c
index 0df8ce3a..0c32ba48 100644
--- a/if.c
+++ b/if.c
@@ -331,9 +331,11 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
if (ctx->ifac && i == ctx->ifac)
continue;
+#ifdef PLUGIN_DEV
/* Ensure that the interface name has settled */
if (!dev_initialized(ctx, p))
continue;
+#endif
/* Don't allow loopback or pointopoint unless explicit */
if (ifa->ifa_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) {