diff options
| author | Andrea Arcangeli <aarcange@redhat.com> | 2015-11-05 18:49:19 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:18 +0200 |
| commit | 563d1f3cb096cb00f56d5c6eba500cd1c031b0e0 (patch) | |
| tree | 447cd70fc0113799fe748144cd6da25a09c7dbf4 /include | |
| parent | bc24f35d7b9bb2fbe59f39731caf594c0b2660e6 (diff) | |
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 <aarcange@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
