Commit 24ed0c4b authored by Ming Lei's avatar Ming Lei Committed by Ingo Molnar
Browse files

tracing: fix check for return value of register_module_notifier

return zero should be correct, so fix it.

[ Impact: eliminate incorrect syslog message ]
Signed-off-by: default avatarMing Lei <>
Acked-by: default avatarFrederic Weisbecker <>
Acked-by: default avatarLi Zefan <>
LKML-Reference: <>
Signed-off-by: default avatarIngo Molnar <>
parent 1079cac0
......@@ -2826,7 +2826,7 @@ void __init ftrace_init(void)
ret = register_module_notifier(&ftrace_module_nb);
if (!ret)
if (ret)
pr_warning("Failed to register trace ftrace module notifier\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment