From: Denis V. Lunev Date: Tue, 13 Nov 2007 11:23:21 +0000 (-0800) Subject: [NET]: Cleanup pernet operation without CONFIG_NET_NS X-Git-Tag: v2.6.24-rc3~145^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed160e839d2e1118529e58b04d52dba703ca629c;p=pandora-kernel.git [NET]: Cleanup pernet operation without CONFIG_NET_NS If CONFIG_NET_NS is not set, the only namespace is possible. This patch removes list of pernet_operations and cleanups code a bit. This list is not needed if there are no namespaces. We should just call ->init method. Additionally, the ->exit will be called on module unloading only. This case is safe - the code is not discarded. For the in/kernel code, ->exit should never be called. Signed-off-by: Denis V. Lunev Signed-off-by: David S. Miller --- Reading git-diff-tree failed