diff options
author | Ming Lei <tom.leiming@gmail.com> | 2009-05-17 03:31:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-18 04:24:13 -0400 |
commit | 24ed0c4bfc7d2d7507bb9d50f7f3bbdcd85d76dd (patch) | |
tree | 954ff0ff7f4249ec7a2e9e9233bb4d8e0670f9ce /kernel/trace/ftrace.c | |
parent | 1079cac0f4eb7d968395378b1625979d4c818dd6 (diff) |
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: 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>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 5b606f45b6c4..140699a9a8a7 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2826,7 +2826,7 @@ void __init ftrace_init(void) | |||
2826 | __stop_mcount_loc); | 2826 | __stop_mcount_loc); |
2827 | 2827 | ||
2828 | ret = register_module_notifier(&ftrace_module_nb); | 2828 | ret = register_module_notifier(&ftrace_module_nb); |
2829 | if (!ret) | 2829 | if (ret) |
2830 | pr_warning("Failed to register trace ftrace module notifier\n"); | 2830 | pr_warning("Failed to register trace ftrace module notifier\n"); |
2831 | 2831 | ||
2832 | return; | 2832 | return; |