aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2009-05-18 11:04:46 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-05-20 13:23:11 -0400
commit5537937696c55530447c20aa27daccb8d0d29b33 (patch)
treee3207e5a491822238ed299a5e7d96dfc72b1c43a /kernel/trace/trace_events.c
parentfd51d251e4cdb21f68e9dbc4336514d64a105a79 (diff)
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: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 0eec0c55dd87..9e91c4ad7c8b 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -1174,7 +1174,7 @@ static __init int event_trace_init(void)
1174 } 1174 }
1175 1175
1176 ret = register_module_notifier(&trace_module_nb); 1176 ret = register_module_notifier(&trace_module_nb);
1177 if (!ret) 1177 if (ret)
1178 pr_warning("Failed to register trace events module notifier\n"); 1178 pr_warning("Failed to register trace events module notifier\n");
1179 1179
1180 return 0; 1180 return 0;