提交 cbeb321a 编写于 作者: D David S. Miller

[NET]: Fix sock_init() return value.

It needs to return zero now that it is an initcall.

Also, net/nonet.c no longer needs a dummy sock_init().
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f34fbb97
......@@ -14,11 +14,6 @@
#include <linux/init.h>
#include <linux/kernel.h>
void __init sock_init(void)
{
printk(KERN_INFO "Linux NoNET1.0 for Linux 2.6\n");
}
static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
{
return -ENXIO;
......
......@@ -2063,6 +2063,8 @@ static int __init sock_init(void)
#ifdef CONFIG_NETFILTER
netfilter_init();
#endif
return 0;
}
core_initcall(sock_init); /* early initcall */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册