From 70d48250e7d25e7df13032eb69e30f0022e4e556 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 24 Jan 2012 22:39:35 +0100 Subject: [PATCH] remove an unnecessary check --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1