Skip to content

Commit

Permalink
[NET]: Fix sock_init() return value.
Browse files Browse the repository at this point in the history
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: David S. Miller <[email protected]>
  • Loading branch information
David S. Miller committed Jan 3, 2006
1 parent f34fbb9 commit cbeb321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/nonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,8 @@ static int __init sock_init(void)
#ifdef CONFIG_NETFILTER
netfilter_init();
#endif

return 0;
}

core_initcall(sock_init); /* early initcall */
Expand Down

0 comments on commit cbeb321

Please sign in to comment.