summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-29 05:45:00 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-29 05:45:00 +0100
commit5811769c788edbf379c8b3fc65f62394d52df748 (patch)
tree7226a811246a845acde92603c274c8d4ed2fadb7 /net
parent[IPV4]: Remove ifa != NULL check. (diff)
downloadlinux-5811769c788edbf379c8b3fc65f62394d52df748.tar.xz
linux-5811769c788edbf379c8b3fc65f62394d52df748.zip
[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 <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/atm/clip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c
index d30167c0b48e..d45971bd286c 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.