Skip to contentSkip to conversation

ipmr: remove useless checks from ipmr_device_event

PATCH Applied Pavel Emelyanov 2 participants 2 messages Feb 17, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---

net/ipv4/ipmr.c +0 -3
index 54596f7..8582e12 100644
@@ -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];