From: Denis V. Lunev Date: Fri, 29 Feb 2008 04:45:00 +0000 (-0800) Subject: [IPV4]: Remove check for ifa->ifa_dev != NULL. X-Git-Tag: v2.6.26-rc1~1138^2~571 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5811769c788edbf379c8b3fc65f62394d52df748;p=linux-2.6-omap-h63xx.git [IPV4]: Remove check for ifa->ifa_dev != NULL. This is a callback registered to inet address notifier chain. The check is useless as: - ifa->ifa_dev is always != NULL - similar checks are abscent in all other notifiers. Signed-off-by: Denis V. Lunev Signed-off-by: David S. Miller --- diff --git a/net/atm/clip.c b/net/atm/clip.c index d30167c0b48..d45971bd286 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -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.