]> err.no Git - linux-2.6/blobdiff - net/atm/clip.c
bridge: fix compile warning in net/bridge/br_netfilter.c
[linux-2.6] / net / atm / clip.c
index e82da674672355e5db011a6f00df73456e4e5a70..5b5b96344ce60fba334fb291a8fe21393aa8bb26 100644 (file)
@@ -612,7 +612,7 @@ static int clip_device_event(struct notifier_block *this, unsigned long event,
 {
        struct net_device *dev = arg;
 
-       if (dev->nd_net != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        if (event == NETDEV_UNREGISTER) {