Skip to content

Commit f3a19cb

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[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 <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 42e4c85 commit f3a19cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎init/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static void __init do_initcalls(void)
582582

583583
result = (*call)();
584584

585-
if (result && (result != -ENODEV || initcall_debug)) {
585+
if (result && result != -ENODEV && initcall_debug) {
586586
sprintf(msgbuf, "error code %d", result);
587587
msg = msgbuf;
588588
}

0 commit comments

Comments
 (0)