]> err.no Git - linux-2.6/blobdiff - net/x25/af_x25.c
mac80211: automatic IBSS channel selection
[linux-2.6] / net / x25 / af_x25.c
index 7b1c6ef04553602fdb156727e9bd10f8531b88d6..9fc5b023d1118a990944cbe32ff5ab2c81e07f5b 100644 (file)
@@ -191,7 +191,7 @@ static int x25_device_event(struct notifier_block *this, unsigned long event,
        struct net_device *dev = ptr;
        struct x25_neigh *nb;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        if (dev->type == ARPHRD_X25