ftrace: fix check for return value of register_module_notifier in event_trace_init
authorMing Lei <tom.leiming@gmail.com>
Mon, 18 May 2009 15:04:46 +0000 (23:04 +0800)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 20 May 2009 17:23:11 +0000 (19:23 +0200)
commit5537937696c55530447c20aa27daccb8d0d29b33
treee3207e5a491822238ed299a5e7d96dfc72b1c43a
parentfd51d251e4cdb21f68e9dbc4336514d64a105a79
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>
kernel/trace/trace_events.c