]> Git Repo - qemu.git/commitdiff
tcg/riscv: Remove superfluous breaks
authorLiao Pingfang <[email protected]>
Mon, 13 Jul 2020 00:33:41 +0000 (08:33 +0800)
committerAlistair Francis <[email protected]>
Tue, 14 Jul 2020 00:25:37 +0000 (17:25 -0700)
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]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-Id: <1594600421[email protected]>
Signed-off-by: Alistair Francis <[email protected]>
tcg/riscv/tcg-target.inc.c

index 2bc0ba71f2834885e14b0ec0264322de4290844d..3c11ab8b7ad5084e239c14e55fac105e355b4d73 100644 (file)
@@ -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();
     }
This page took 0.031394 seconds and 4 git commands to generate.