mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 23:54:26 +08:00
[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>
This commit is contained in:
parent
42e4c8585f
commit
f3a19cb45f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user