]> Git Repo - linux.git/commit - mm/ksm.c
ksm: unstable_tree_search_insert error checking cleanup
authorAndrea Arcangeli <[email protected]>
Fri, 6 Nov 2015 02:49:19 +0000 (18:49 -0800)
committerLinus Torvalds <[email protected]>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitc8f95ed1a9ce373d20d3b09a6a9fb91c8beef27e
treed16cae310973cef4ada33fceabe780c102e14196
parent85c6e8dd23c6aa9ff299bf5256fe5f0a6c44f100
ksm: unstable_tree_search_insert error checking cleanup

get_mergeable_page() can only return NULL (also in case of errors) or the
pinned mergeable page.  It can't return an error different than NULL.
This optimizes away the unnecessary error check.

Add a return after the "out:" label in the callee to make it more
readable.

Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Cc: Petr Holasek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/ksm.c
This page took 0.055024 seconds and 4 git commands to generate.