diff options
author | Liao Pingfang | 2020-07-13 02:33:41 +0200 |
---|---|---|
committer | Alistair Francis | 2020-07-14 02:25:37 +0200 |
commit | 895bfa84fec27899bf8e8c17f46358d31df2ab4f (patch) | |
tree | de0de6f74065cd919b8e0ecf21974cb67eaa3e58 /tcg | |
parent | hw/char: Convert the Ibex UART to use the registerfields API (diff) | |
download | qemu-895bfa84fec27899bf8e8c17f46358d31df2ab4f.tar.gz qemu-895bfa84fec27899bf8e8c17f46358d31df2ab4f.tar.xz qemu-895bfa84fec27899bf8e8c17f46358d31df2ab4f.zip |
tcg/riscv: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them.
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <1594600421-22942-1-git-send-email-wang.yi59@zte.com.cn>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/riscv/tcg-target.inc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tcg/riscv/tcg-target.inc.c b/tcg/riscv/tcg-target.inc.c index 2bc0ba71f2..3c11ab8b7a 100644 --- a/tcg/riscv/tcg-target.inc.c +++ b/tcg/riscv/tcg-target.inc.c @@ -502,10 +502,8 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int type, break; case R_RISCV_JAL: return reloc_jimm20(code_ptr, (tcg_insn_unit *)value); - break; case R_RISCV_CALL: return reloc_call(code_ptr, (tcg_insn_unit *)value); - break; default: tcg_abort(); } |