]> Git Repo - qemu.git/commitdiff
target/cris: Remove superfluous breaks
authorLiao Pingfang <[email protected]>
Mon, 13 Jul 2020 09:05:50 +0000 (17:05 +0800)
committerLaurent Vivier <[email protected]>
Tue, 1 Sep 2020 06:41:15 +0000 (08:41 +0200)
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]>
Message-Id: <1594631150[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
target/cris/translate.c
target/cris/translate_v10.c.inc

index ee5e359c778867e3d3e8c2a16d7127a2b27ac1ca..c312e6f8a65f2cc43c3162f17f36bcf7d0a9fa42 100644 (file)
@@ -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
index ae34a0d1a3d806e7048694d15a3f15ae4760f35c..7f38fd215eae9573640e58fd27b4b34c0e990d8f 100644 (file)
@@ -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);
This page took 0.031456 seconds and 4 git commands to generate.