]> git.baikalelectronics.ru Git - kernel.git/commit
mm/huge_memory.c: remove unnecessary local variable ret2
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 5 May 2021 01:33:49 +0000 (18:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:20 +0000 (11:27 -0700)
commit82efc7ec4d7605de22b0d965d6e8174365597422
treef11de032851597b7629f134a15311b5f6170a436
parentf7380b1c0b0e53413c695be1aa99d67be6c4bd50
mm/huge_memory.c: remove unnecessary local variable ret2

There is no need to use a new local variable ret2 to get the return
value of handle_userfault().  Use ret directly to make code more
succinct.

Link: https://lkml.kernel.org/r/20210210072409.60587-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c