]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/irda/irlap_frame.c
netns: Use net_eq() to compare net-namespaces for optimization.
[net-next-2.6.git] / net / irda / irlap_frame.c
index 90894534f3cc67dc9c841405ce7be1bbe4de1d4f..f17b65af9c9b4b28a90aa722feba24b1c2d9a688 100644 (file)
@@ -1326,7 +1326,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
        int command;
        __u8 control;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                goto out;
 
        /* FIXME: should we get our own field? */