Skip to content

Commit

Permalink
ipmr: remove useless checks from ipmr_device_event
Browse files Browse the repository at this point in the history
The net being checked there is dev_net(dev) and thus this if
is always false.

Fits both net and net-next trees.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Feb 17, 2010
1 parent a77ff70 commit 9f0beba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,6 @@ static int ipmr_device_event(struct notifier_block *this, unsigned long event, v
int ct;
LIST_HEAD(list);

if (!net_eq(dev_net(dev), net))
return NOTIFY_DONE;

if (event != NETDEV_UNREGISTER)
return NOTIFY_DONE;
v = &net->ipv4.vif_table[0];
Expand Down

0 comments on commit 9f0beba

Please sign in to comment.