tcg/riscv: Remove superfluous breaks
PATCH 3/12 tcg/riscv: Remove superfluous breaks
From: Liao Pingfang <[email protected]>
Remove superfluous breaks, as there is a "return" before them.
Signed-off-by Liao Pingfang <[email protected]>
Signed-off-by Yi Wang <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
--- tcg/riscv/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-)
tcg/riscv/tcg-target.inc.c +0 -2
@@ -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 (); }
Signature · 1 line
2.9.5
Quoted 17 lines · Yi Wang
From: Liao Pingfang <[email protected]>
Remove superfluous breaks, as there is a "return" before them.
Signed-off-by Liao Pingfang <[email protected]>Signed-off-by Yi Wang <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>--- tcg/riscv/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-)tcg/riscv/tcg-target.inc.c +0
-0
tcg/riscv/tcg-target.inc.c static bool patch_reloc(tcg_insn_unit *code_ptr, int type, · line 509
Quoted 10 lines
tcg/riscv/tcg-target.inc.c +0
-2@@ -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 (); }
Reviewed-by Thomas Huth <[email protected]>
Quoted 7 lines · Yi Wang
From: Liao Pingfang <[email protected]>
Remove superfluous breaks, as there is a "return" before them.
Signed-off-by Liao Pingfang <[email protected]>Signed-off-by Yi Wang <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>
I hadn't reviewed this patch, but now I did.
Quoted 20 lines
--- tcg/riscv/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-)tcg/riscv/tcg-target.inc.c +0
-2@@ -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 (); }