remove an unnecessary check
authorFelix Fietkau <nbd@openwrt.org>
Tue, 24 Jan 2012 21:39:35 +0000 (22:39 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 24 Jan 2012 21:39:35 +0000 (22:39 +0100)
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)