qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Yi Wang <wang.yi59@zte.com.cn>, qemu-devel@nongnu.org
Cc: xue.zhihong@zte.com.cn,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	QEMU Trivial <qemu-trivial@nongnu.org>,
	wang.liang82@zte.com.cn, Liao Pingfang <liao.pingfang@zte.com.cn>
Subject: Re: [PATCH 12/12] target/cris: Remove superfluous breaks
Date: Mon, 13 Jul 2020 11:39:37 +0200	[thread overview]
Message-ID: <454721ce-1508-dcc0-bf08-2c27fd37854f@redhat.com> (raw)
In-Reply-To: <1594631150-36801-1-git-send-email-wang.yi59@zte.com.cn>

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	other threads:[~2020-07-13  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-13  9:05 [PATCH 12/12] target/cris: Remove superfluous breaks Yi Wang
2020-07-13  9:39 ` Thomas Huth [this message]
2020-09-01  6:41   ` Laurent Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=454721ce-1508-dcc0-bf08-2c27fd37854f@redhat.com \
    --to=thuth@redhat.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=liao.pingfang@zte.com.cn \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=wang.liang82@zte.com.cn \
    --cc=wang.yi59@zte.com.cn \
    --cc=xue.zhihong@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).