Commit 895bfa84 authored by Liao Pingfang's avatar Liao Pingfang Committed by Alistair Francis
Browse files

tcg/riscv: Remove superfluous breaks



Remove superfluous breaks, as there is a "return" before them.

Signed-off-by: default avatarLiao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: default avatarYi Wang <wang.yi59@zte.com.cn>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <1594600421-22942-1-git-send-email-wang.yi59@zte.com.cn>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 59093cc4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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();
    }