[NET]: Small cleanup to socket initialization
sock_init can be done as a core_initcall instead of calling it directly in init/main.c Also I removed an out of date #ifdef. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7708610b1b
commit
77d76ea310
@@ -47,7 +47,6 @@
|
||||
#include <linux/rmap.h>
|
||||
#include <linux/mempolicy.h>
|
||||
#include <linux/key.h>
|
||||
#include <net/sock.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/bugs.h>
|
||||
@@ -614,9 +613,6 @@ static void __init do_basic_setup(void)
|
||||
sysctl_init();
|
||||
#endif
|
||||
|
||||
/* Networking initialization needs a process context */
|
||||
sock_init();
|
||||
|
||||
do_initcalls();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user