[IPV4]: Remove unnecessary test for the loopback device from inetdev_destroy
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Sep 2007 05:09:25 +0000 (22:09 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:48 +0000 (16:52 -0700)
commit5967789dbc8aafdba5813fa8e8cfce3c90516f83
tree0ea20278a6210297812cb8b3ed962e38d98ce3b8
parent5f6d88b9149d537f3db0798f7d312be632422e15
[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: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c