From nobody Sat May 18 10:57:12 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1594600358; cv=none; d=zohomail.com; s=zohoarc; b=nDbIYT0ZpaviKXyc+5uHClQnUKDaJoy4XOBj1qyMoHMzGeBtLbVYGJGfgV17MlasJPlApDE6zGzJ4xeaO+rC2L0cJ2N25Zpw7/bTjmRlNH6mAcH9VYXs70Jgem8MUkzUkRIQ34COf7WgRlW/I6b6PdfAELVGIwLLheDo45VaLyY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594600358; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=vksqJdO/uFZtQnlijVnA0mQwgCOX9rpxufAZiOvVmPw=; b=WlUpNpgM7uup+23EvaIsPDxr7DDp7DmBLhd6mZ1NNTOu24y/pGT/XA9/E7K1KxshaBPj4aBxxUGjw2UAur9MwcuR2c9M7Zc7tSAFQeYhtV4V00nGVYZjUn/9i3dYOCR0tlfiuoO0Sf9F2RySW8KumiOruMXPLhA+BAUIZnpwzcM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594600358542360.0749242947045; Sun, 12 Jul 2020 17:32:38 -0700 (PDT) Received: from localhost ([::1]:54228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jumOb-0007m6-93 for importer@patchew.org; Sun, 12 Jul 2020 20:32:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jumNB-00060T-Bu for qemu-devel@nongnu.org; Sun, 12 Jul 2020 20:31:09 -0400 Received: from mx7.zte.com.cn ([202.103.147.169]:44468 helo=mxct.zte.com.cn) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jumN9-0004g1-IF for qemu-devel@nongnu.org; Sun, 12 Jul 2020 20:31:09 -0400 Received: from mse-fl2.zte.com.cn (unknown [10.30.14.239]) by Forcepoint Email with ESMTPS id 652699F837E8566AA980 for ; Mon, 13 Jul 2020 08:31:05 +0800 (CST) Received: from notes_smtp.zte.com.cn (notessmtp.zte.com.cn [10.30.1.239]) by mse-fl2.zte.com.cn with ESMTP id 06D0V394001723 for ; Mon, 13 Jul 2020 08:31:03 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2020071308310534-4262433 ; Mon, 13 Jul 2020 08:31:05 +0800 From: Yi Wang To: qemu-devel@nongnu.org Subject: [PATCH] target/cris: Remove superfluous breaks Date: Mon, 13 Jul 2020 08:34:15 +0800 Message-Id: <1594600455-23439-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2020-07-13 08:31:05, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2020-07-13 08:31:04, Serialize complete at 2020-07-13 08:31:04 X-MAIL: mse-fl2.zte.com.cn 06D0V394001723 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=202.103.147.169; envelope-from=wang.yi59@zte.com.cn; helo=mxct.zte.com.cn X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/12 20:30:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wang.yi59@zte.com.cn, Liao Pingfang , wang.liang82@zte.com.cn, xue.zhihong@zte.com.cn Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Reviewed-by: Richard Henderson --- 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 s= ize) 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.in= c.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, Dis= asContext *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=3D%d op=3D%d %d\n", size, dc->src, dc->= dst); cris_cc_mask(dc, CC_MASK_NZVC); --=20 2.9.5