Skip to content
Commit 2f01b786 authored by Vincent Chen's avatar Vincent Chen Committed by Paul Walmsley
Browse files

riscv: remove the switch statement in do_trap_break()



To make the code more straightforward, replace the switch statement
with an if statement.

Suggested-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: default avatarVincent Chen <vincent.chen@sifive.com>
[paul.walmsley@sifive.com: cleaned up patch description; updated to
 apply]
Link: https://lore.kernel.org/linux-riscv/20190927224711.GI4700@infradead.org/
Link: https://lore.kernel.org/linux-riscv/CABvJ_xiHJSB7P5QekuLRP=LBPzXXghAfuUpPUYb=a_HbnOQ6BA@mail.gmail.com/
Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/VDCU2WOB6KQISREO4V5DTXEI2M7VOV55/


Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
parent 4f5cafb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment