netns: Use net_eq() to compare net-namespaces for optimization.
[pandora-kernel.git] / net / ipv4 / netfilter / ipt_MASQUERADE.c
index 84c26dd..0841aef 100644 (file)
@@ -120,7 +120,7 @@ static int masq_device_event(struct notifier_block *this,
 {
        const struct net_device *dev = ptr;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        if (event == NETDEV_DOWN) {