openrisc: traps: Remove calls to show_registers before die
authorStafford Horne <shorne@gmail.com>
Thu, 11 Apr 2024 17:42:50 +0000 (18:42 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 15 Apr 2024 14:20:39 +0000 (15:20 +0100)
commitee7e551d28aa03664ead6b45154e20644a2f1040
tree866acce418a6b283d961d30d91cb3a1adb11e529
parentc8fdf82ee3447eb5459c3c2e2808a92c96374d4a
openrisc: traps: Remove calls to show_registers before die

The die function calls show_registers unconditionally.  Remove calls to
show_registers before calling die to avoid printing all registers and
stack status two times during a crash.

This was found when testing kernel trap and floating point exception
handling.

Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/traps.c