diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2010-02-17 01:19:32 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 13:27:10 -0800 |
commit | 9f0beba9f90847db7ba6ed894f7c87b6038a5bce (patch) | |
tree | 33245112ba66fdb1c886da7663b5bba439e17879 | |
parent | a77ff709dd30a263f8154b05a8514b46098b42ba (diff) | |
download | op-kernel-dev-9f0beba9f90847db7ba6ed894f7c87b6038a5bce.zip op-kernel-dev-9f0beba9f90847db7ba6ed894f7c87b6038a5bce.tar.gz |
ipmr: remove useless checks from ipmr_device_event
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>
-rw-r--r-- | net/ipv4/ipmr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 54596f7..8582e12 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -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]; |