Commit 5811769c authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller

[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: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a337499f
...@@ -648,10 +648,6 @@ static int clip_inet_event(struct notifier_block *this, unsigned long event, ...@@ -648,10 +648,6 @@ static int clip_inet_event(struct notifier_block *this, unsigned long event,
struct in_device *in_dev; struct in_device *in_dev;
in_dev = ((struct in_ifaddr *)ifa)->ifa_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 * Transitions are of the down-change-up type, so it's sufficient to
* handle the change on up. * handle the change on up.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment