[PATCH] clean-up initcall warning for netconsole

From: Matt Mackall
Date: Tue May 02 2006 - 18:49:21 EST


On Fri, Apr 28, 2006 at 10:54:03AM -0700, Andrew Morton wrote:
> Yeah. I think netconsole is just being wrong here. If it wasn't enabled
> there's no error.

Here's a fix:

Index: 2.6/drivers/net/netconsole.c
===================================================================
--- 2.6.orig/drivers/net/netconsole.c 2006-05-02 17:28:43.000000000 -0500
+++ 2.6/drivers/net/netconsole.c 2006-05-02 17:43:37.000000000 -0500
@@ -107,7 +107,7 @@ static int init_netconsole(void)

if(!configured) {
printk("netconsole: not configured, aborting\n");
- return -EINVAL;
+ return 0;
}

if(netpoll_setup(&np))


--
Mathematics is the supreme nostalgia of our time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/