Skip to content

Commit

Permalink
[IPV4]: Remove check for ifa->ifa_dev != NULL.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Feb 29, 2008
1 parent a337499 commit 5811769
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5811769

Please sign in to comment.