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

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/trace/ftrace.c+1−1
@@ -2826,7 +2826,7 @@ void __init ftrace_init(void) · 2825 unmodified lines
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;