diff options
author | Andrew Morton <akpm@osdl.org> | 2006-05-01 15:15:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-01 21:17:43 -0400 |
commit | f3a19cb45f4730c4ce09ca9bccf197efd010dc3b (patch) | |
tree | 8d335d5ecfebf4040865e09d3cdb0e7c012cc5c7 /init/main.c | |
parent | 42e4c8585f8cbbfac3b70aa2d0a4f869509a0354 (diff) |
[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>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 4a2f0898dda1..f715b9b89753 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -582,7 +582,7 @@ static void __init do_initcalls(void) | |||
582 | 582 | ||
583 | result = (*call)(); | 583 | result = (*call)(); |
584 | 584 | ||
585 | if (result && (result != -ENODEV || initcall_debug)) { | 585 | if (result && result != -ENODEV && initcall_debug) { |
586 | sprintf(msgbuf, "error code %d", result); | 586 | sprintf(msgbuf, "error code %d", result); |
587 | msg = msgbuf; | 587 | msg = msgbuf; |
588 | } | 588 | } |