提交 18e8e5c7 编写于 作者: V Viresh Kumar 提交者: Jiri Kosina

mm: Drop unlikely before IS_ERR(_OR_NULL)

IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there
is no need to do that again from its callers. Drop it.
Acked-by: NKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 a1c83681
...@@ -149,7 +149,7 @@ static int start_stop_khugepaged(void) ...@@ -149,7 +149,7 @@ static int start_stop_khugepaged(void)
if (!khugepaged_thread) if (!khugepaged_thread)
khugepaged_thread = kthread_run(khugepaged, NULL, khugepaged_thread = kthread_run(khugepaged, NULL,
"khugepaged"); "khugepaged");
if (unlikely(IS_ERR(khugepaged_thread))) { if (IS_ERR(khugepaged_thread)) {
pr_err("khugepaged: kthread_run(khugepaged) failed\n"); pr_err("khugepaged: kthread_run(khugepaged) failed\n");
err = PTR_ERR(khugepaged_thread); err = PTR_ERR(khugepaged_thread);
khugepaged_thread = NULL; khugepaged_thread = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册