qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 12/12] target/cris: Remove superfluous breaks


From: Thomas Huth
Subject: Re: [PATCH 12/12] target/cris: Remove superfluous breaks
Date: Mon, 13 Jul 2020 11:39:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 13/07/2020 11.05, Yi Wang wrote:
> From: Liao Pingfang <liao.pingfang@zte.com.cn>
> 
> 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>
> ---
>  target/cris/translate.c         | 7 +++----
>  target/cris/translate_v10.inc.c | 2 --
>  2 files changed, 3 insertions(+), 6 deletions(-)
> 
> diff --git a/target/cris/translate.c b/target/cris/translate.c
> index aaa46b5..64a478b 100644
> --- a/target/cris/translate.c
> +++ b/target/cris/translate.c
> @@ -1178,12 +1178,11 @@ static inline void t_gen_zext(TCGv d, TCGv s, int 
> size)
>  static char memsize_char(int size)
>  {
>      switch (size) {
> -    case 1: return 'b';  break;
> -    case 2: return 'w';  break;
> -    case 4: return 'd';  break;
> +    case 1: return 'b';
> +    case 2: return 'w';
> +    case 4: return 'd';
>      default:
>          return 'x';
> -        break;
>      }
>  }
>  #endif
> diff --git a/target/cris/translate_v10.inc.c b/target/cris/translate_v10.inc.c
> index ae34a0d..7f38fd2 100644
> --- a/target/cris/translate_v10.inc.c
> +++ b/target/cris/translate_v10.inc.c
> @@ -1026,10 +1026,8 @@ static unsigned int dec10_ind(CPUCRISState *env, 
> DisasContext *dc)
>          switch (dc->opcode) {
>              case CRISV10_IND_MOVE_M_R:
>                  return dec10_ind_move_m_r(env, dc, size);
> -                break;
>              case CRISV10_IND_MOVE_R_M:
>                  return dec10_ind_move_r_m(dc, size);
> -                break;
>              case CRISV10_IND_CMP:
>                  LOG_DIS("cmp size=%d op=%d %d\n",  size, dc->src, dc->dst);
>                  cris_cc_mask(dc, CC_MASK_NZVC);
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]