riscv/mm/fault: Move access error check to function
authorPekka Enberg <penberg@kernel.org>
Tue, 25 Aug 2020 16:41:17 +0000 (19:41 +0300)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 16 Sep 2020 01:46:05 +0000 (18:46 -0700)
commitafb8c6fee8ce9b54b9c810eea0597ef6a876abb7
treeb7b31318e373878e66f1324e7a00a275769adece
parent6747430197ed414be37e843064a7f365f4d1fd57
riscv/mm/fault: Move access error check to function

Move the access error check into a access_error() function to simplify
the control flow in do_page_fault().

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/fault.c