projects/linux·commit f3a19cb4

[PATCH] silence initcall warnings

f3a19cb4 · Andrew Morton <[email protected]> · 2006-05-01 12:15:52 -07:00

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
f3a19cb45f4730c4ce09ca9bccf197efd010dc3b
Parents
42e4c858

Changes

1 files changed · +1 −1

FileStatusAddDelContent
init/main.cmodified+1−1View file

init/main.c

View file
diff --git a/init/main.c b/init/main.c
index 4a2f089..f715b9b 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;
}