Skip to content

Commit

Permalink
mm: Drop unlikely before IS_ERR(_OR_NULL)
Browse files Browse the repository at this point in the history
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: Kirill A. Shutemov <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
vireshk authored and Jiri Kosina committed Sep 29, 2015
1 parent a1c8368 commit 18e8e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int start_stop_khugepaged(void)
if (!khugepaged_thread)
khugepaged_thread = kthread_run(khugepaged, NULL,
"khugepaged");
if (unlikely(IS_ERR(khugepaged_thread))) {
if (IS_ERR(khugepaged_thread)) {
pr_err("khugepaged: kthread_run(khugepaged) failed\n");
err = PTR_ERR(khugepaged_thread);
khugepaged_thread = NULL;
Expand Down

0 comments on commit 18e8e5c

Please sign in to comment.