return zero should be correct, so fix it. [ Impact: eliminate incorrect syslog message ]
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -2826,7 +2826,7 @@ void __init ftrace_init(void) · 2825 unmodified lines | ||
| 2826 | 2826 | __stop_mcount_loc); |
| 2827 | 2827 | |
| 2828 | 2828 | ret = register_module_notifier(&ftrace_module_nb); |
| 2829 | − if (!ret) | |
| 2829 | + if (ret) | |
| 2830 | 2830 | pr_warning("Failed to register trace ftrace module notifier\n"); |
| 2831 | 2831 | |
| 2832 | 2832 | return; |