projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a77ff70
)
ipmr: remove useless checks from ipmr_device_event
author
Pavel Emelyanov
<xemul@openvz.org>
Wed, 17 Feb 2010 01:19:32 +0000
(
01:19
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 17 Feb 2010 21:27:10 +0000
(13:27 -0800)
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>
net/ipv4/ipmr.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ipmr.c
b/net/ipv4/ipmr.c
index 54596f73eff5a8f78e1abed5ab1dcb0777b775ff..8582e12e4a62a8b11ec53d129aabbf16842fcc8e 100644
(file)
--- 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];