]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] silence initcall warnings
authorAndrew Morton <akpm@osdl.org>
Mon, 1 May 2006 19:15:52 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:43 +0000 (18:17 -0700)
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 <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/main.c

index 4a2f0898dda1d00bd0dcdeeb2d545007382f3dd3..f715b9b897538cb04dc94fa900bd8c3f5d6e26e7 100644 (file)
@@ -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;
                }