Commit 5967789d authored by Eric W. Biederman's avatar Eric W. Biederman Committed by David S. Miller

[IPV4]: Remove unnecessary test for the loopback device from inetdev_destroy

Currently we never call unregister_netdev for the loopback device so
it is impossible for us to reach inetdev_destroy with the loopback
device.  So the test in inetdev_destroy is unnecessary.

Further when testing with my network namespace patches removing
unregistering the loopback device and calling inetdev_destroy works
fine so there appears to be no reason for avoiding unregistering the
loopback device.
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f6d88b9
...@@ -203,8 +203,6 @@ static void inetdev_destroy(struct in_device *in_dev) ...@@ -203,8 +203,6 @@ static void inetdev_destroy(struct in_device *in_dev)
ASSERT_RTNL(); ASSERT_RTNL();
dev = in_dev->dev; dev = in_dev->dev;
if (dev == loopback_dev)
return;
in_dev->dead = 1; in_dev->dead = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment