History

tracing: fix check for return value of register_module_notifier

return zero should be correct, so fix it. [ Impact: eliminate incorrect syslog message ]

Ming Lei committed 17 years ago

Commit 24ed0c41 parent 1079cac1 file · +1 −1Browse files

Unified · Split

kernel/trace/ftrace.c+1−1
@@ -2826,7 +2826,7 @@ void __init ftrace_init(void) · 2825 unmodified lines
28262826 __stop_mcount_loc);
28272827
28282828 ret = register_module_notifier(&ftrace_module_nb);
2829− if (!ret)
2829+ if (ret)
28302830 pr_warning("Failed to register trace ftrace module notifier\n");
28312831
28322832 return;