Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f0beba9 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller
Browse files

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: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a77ff709
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1163,9 +1163,6 @@ static int ipmr_device_event(struct notifier_block *this, unsigned long event, v
	int ct;
	int ct;
	LIST_HEAD(list);
	LIST_HEAD(list);


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

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