riscv/mm/fault: Move fault error handling to mm_fault_error()
authorPekka Enberg <penberg@kernel.org>
Tue, 25 Aug 2020 16:04:09 +0000 (19:04 +0300)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 16 Sep 2020 01:46:02 +0000 (18:46 -0700)
commit6c11ffbfd849830e8cede5fb0699828e74a7d26b
tree0f1bd43855a75fae54286dccfd78b659d0457583
parentbda281d5bfb70f895880ebfb94a7f20d0604437f
riscv/mm/fault: Move fault error handling to mm_fault_error()

This patch moves the fault error handling to mm_fault_error() function
and converts gotos to calls to the new function.

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