aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/netconsole.c')
-rw-r--r--drivers/net/netconsole.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index bf58db29e2ed..e6e8a9797b6d 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -102,6 +102,8 @@ __setup("netconsole=", option_setup);
102 102
103static int init_netconsole(void) 103static int init_netconsole(void)
104{ 104{
105 int err;
106
105 if(strlen(config)) 107 if(strlen(config))
106 option_setup(config); 108 option_setup(config);
107 109
@@ -110,8 +112,9 @@ static int init_netconsole(void)
110 return 0; 112 return 0;
111 } 113 }
112 114
113 if(netpoll_setup(&np)) 115 err = netpoll_setup(&np);
114 return -EINVAL; 116 if (err)
117 return err;
115 118
116 register_console(&netconsole); 119 register_console(&netconsole);
117 printk(KERN_INFO "netconsole: network logging started\n"); 120 printk(KERN_INFO "netconsole: network logging started\n");