From: Andrew Morton Date: Mon, 1 May 2006 19:15:52 +0000 (-0700) Subject: [PATCH] silence initcall warnings X-Git-Tag: v2.6.17-rc4~90 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f3a19cb45f4730c4ce09ca9bccf197efd010dc3b;p=linux-2.6-omap-h63xx.git [PATCH] silence initcall warnings Suppress the initcall-return-value warnings unless initcall_debug was specified. They do find bugs, but they're extremely small ones and as Andi points out, people get distressed. Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/main.c b/init/main.c index 4a2f0898dda..f715b9b8975 100644 --- a/init/main.c +++ b/init/main.c @@ -582,7 +582,7 @@ static void __init do_initcalls(void) result = (*call)(); - if (result && (result != -ENODEV || initcall_debug)) { + if (result && result != -ENODEV && initcall_debug) { sprintf(msgbuf, "error code %d", result); msg = msgbuf; }