proto: move the dns search option handling to the core
[project/netifd.git] / interface.c
index 1db2efe..3dceef0 100644 (file)
@@ -183,7 +183,7 @@ interface_claim_device(struct interface *iface)
 {
        struct device *dev;
 
-       if (iface->ifname && iface->proto_handler &&
+       if (iface->ifname &&
                !(iface->proto_handler->flags & PROTO_FLAG_NODEV)) {
                dev = device_get(iface->ifname, true);
                if (dev)