X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fatm%2Fclip.c;h=5b5b96344ce60fba334fb291a8fe21393aa8bb26;hb=e5a4a72d4f88f4389e9340d383ca67031d1b8536;hp=2ab1e36098fd2b1f2fa059c2eebf6e150b10f8e8;hpb=5004de1809a5ad97a76840da9f62a1111da505e7;p=linux-2.6 diff --git a/net/atm/clip.c b/net/atm/clip.c index 2ab1e36098..5b5b96344c 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -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) { @@ -648,10 +648,6 @@ static int clip_inet_event(struct notifier_block *this, unsigned long event, struct in_device *in_dev; in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; - if (!in_dev || !in_dev->dev) { - printk(KERN_WARNING "clip_inet_event: no device\n"); - return NOTIFY_DONE; - } /* * Transitions are of the down-change-up type, so it's sufficient to * handle the change on up.