]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2402cfc9f021a1107d5905df02e2b3a5c04d880
treeb7b31318e373878e66f1324e7a00a275769adece
parent94c1931b1f3b90c423f09aab1672741131aa62dd
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