aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorOctavian Purdila <opurdila@ixiacom.com>2009-11-25 18:14:13 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-25 18:14:13 -0500
commit09ad9bc752519cc167d0a573e1acf69b5c707c67 (patch)
tree0e190a9ffb90d7e0534136c3e9f31dce02f423c3 /drivers/net/hamradio
parent4ba3eb034fb6fd1990ccc5a6d71d5abcda37b905 (diff)
net: use net_eq to compare nets
Generated with the following semantic patch @@ struct net *n1; struct net *n2; @@ - n1 == n2 + net_eq(n1, n2) @@ struct net *n1; struct net *n2; @@ - n1 != n2 + !net_eq(n1, n2) applied over {include,net,drivers/net}. Signed-off-by: Octavian Purdila <opurdila@ixiacom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/bpqether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c
index fe893c91a01b..76abed9a70b1 100644
--- a/drivers/net/hamradio/bpqether.c
+++ b/drivers/net/hamradio/bpqether.c
@@ -186,7 +186,7 @@ static int bpq_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_ty
186 struct ethhdr *eth; 186 struct ethhdr *eth;
187 struct bpqdev *bpq; 187 struct bpqdev *bpq;
188 188
189 if (dev_net(dev) != &init_net) 189 if (!net_eq(dev_net(dev), &init_net))
190 goto drop; 190 goto drop;
191 191
192 if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) 192 if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
@@ -552,7 +552,7 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
552{ 552{
553 struct net_device *dev = (struct net_device *)ptr; 553 struct net_device *dev = (struct net_device *)ptr;
554 554
555 if (dev_net(dev) != &init_net) 555 if (!net_eq(dev_net(dev), &init_net))
556 return NOTIFY_DONE; 556 return NOTIFY_DONE;
557 557
558 if (!dev_is_ethdev(dev)) 558 if (!dev_is_ethdev(dev))