ipmr: remove useless checks from ipmr_device_event
Subsystems (3)
PATCH 1/1 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 <[email protected]>
---
net/ipv4/ipmr.c +0 -3
@@ -1163,9 +1163,6 @@ static int ipmr_device_event(struct notifier_block *this, unsigned long event, vint 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 ];
From: Pavel Emelyanov <[email protected]>
Date: Wed, 17 Feb 2010 14:19:32 +0300
Quoted 6 lines
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 <[email protected]>
Applied to net-next-2.6