Skip to content

Commit

Permalink
tracing: fix check for return value of register_module_notifier
Browse files Browse the repository at this point in the history
return zero should be correct, so fix it.

[ Impact: eliminate incorrect syslog message ]

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: rostedt@goodmis.org
LKML-Reference: <1242545498-7285-1-git-send-email-tom.leiming@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ming Lei authored and Ingo Molnar committed May 18, 2009
1 parent 1079cac commit 24ed0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2826,7 +2826,7 @@ void __init ftrace_init(void)
__stop_mcount_loc);

ret = register_module_notifier(&ftrace_module_nb);
if (!ret)
if (ret)
pr_warning("Failed to register trace ftrace module notifier\n");

return;
Expand Down

0 comments on commit 24ed0c4

Please sign in to comment.