From: Felix Fietkau Date: Tue, 24 Jan 2012 21:39:35 +0000 (+0100) Subject: remove an unnecessary check X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=70d48250e7d25e7df13032eb69e30f0022e4e556 remove an unnecessary check --- diff --git a/interface.c b/interface.c index 1db2efe..3dceef0 100644 --- a/interface.c +++ b/interface.c @@ -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)