tracing: fix check for return value of register_module_notifier
authorMing Lei <tom.leiming@gmail.com>
Sun, 17 May 2009 07:31:38 +0000 (15:31 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 May 2009 08:24:13 +0000 (10:24 +0200)
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>
kernel/trace/ftrace.c

index 5b606f45b6c43b7fb5d4c54b7ace5b64ca306f79..140699a9a8a72390890111c1357c2bd6216b3703 100644 (file)
@@ -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;