ipv6: Remove unnecessary test
authorzhuyj <zyjzyj2000@gmail.com>
Wed, 26 Nov 2014 02:25:58 +0000 (10:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 17:27:04 +0000 (12:27 -0500)
commit73cf0e923d685a6a1b7754c7d29cc14944f271d9
tree43d2b09629396564e59aee6cce747df9578fced8
parent12bbd595ab45f093db36d12768926422013b3441
ipv6: Remove unnecessary test

The "init_net" test in function addrconf_exit_net is introduced
in commit 44a6bd29 [Create ipv6 devconf-s for namespaces] to avoid freeing
init_net. In commit c900a800 [ipv6: fix bad free of addrconf_init_net],
function addrconf_init_net will allocate memory for every net regardless of
init_net. In this case, it is unnecessary to make "init_net" test.

CC: Hong Zhiguo <honkiko@gmail.com>
CC: Octavian Purdila <opurdila@ixiacom.com>
CC: Pavel Emelyanov <xemul@openvz.org>
CC: Cong Wang <cwang@twopensource.com>
Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c