net_namespace: trivial cleanup
authorxiao jin <jin.xiao@intel.com>
Fri, 25 Apr 2014 00:50:54 +0000 (08:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Apr 2014 16:50:23 +0000 (12:50 -0400)
commit1818ce4dc59a71a53faa33a7ca050ca9c406bf66
treef1674c0ebbc83a29942dea9dde81260fd31b7b06
parent98a20b735bb4ba5d97d35cf69eb0d8a2ee505de2
net_namespace: trivial cleanup

Do not initialize net_kill_list twice.
list_replace_init() already takes care of initializing net_kill_list.
We don't need to initialize it with LIST_HEAD() beforehand.

Signed-off-by: xiao jin <jin.xiao@intel.com>
Reviewed-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c