提交 55379376 编写于 作者: M Ming Lei 提交者: Frederic Weisbecker

ftrace: fix check for return value of register_module_notifier in event_trace_init

register_module_notifier() returns zero in the success case.
So fix the inverted fail case check in trace events modules
handler.

[ Impact: fix spurious warning on ftrace initialization]
Reported-by: NLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: NMing Lei <tom.leiming@gmail.com>
Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
上级 fd51d251
......@@ -1174,7 +1174,7 @@ static __init int event_trace_init(void)
}
ret = register_module_notifier(&trace_module_nb);
if (!ret)
if (ret)
pr_warning("Failed to register trace events module notifier\n");
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册