Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1749394pxb; Fri, 6 Nov 2020 19:42:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAuNtcG32A0RvjFOmqHX9SKtKZgIKA9Y729Ivm9amfVhIeur+NkGDdwYHrT3QB1qenczqd X-Received: by 2002:aa7:dc12:: with SMTP id b18mr5337687edu.295.1604720565134; Fri, 06 Nov 2020 19:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604720565; cv=none; d=google.com; s=arc-20160816; b=EAgVmm7l3YSfgRFvWHKu3Uur5ab7pdUB1eBZKbzZluvTXbTaO8vH/nbJlaoeAVp6h+ radfrcfWMuh6db0XJh8t/kz+ilY0RoenwDuSiRDEGPSrx/TIeFIpaG26131+oRhJ/C+K Qx12F/BA6hcPqZmQCoUvLotwCNjIN4Rqw03bt+69Hkyv+XQOFuip0SVrSSNzkSL8VJH8 344G5kZhbu7nQRaJ12ivuFQPvgQUu1Lo58DzqQWRZqVz1LO7LEV+YYgrg3hvDBCJsKur 8vod/Y1pzJY5aKeFt54PalNPDA1Ny9s2uBZZCAy8z9RPuTxjPkq43ObiGnE4kKo/eCVV zDHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HnPC+mIomwoDcc8CFipV7MPoB86cLyCwP4WJ6pgEq88=; b=kLJLKuiLDoE8BI7MtGMqejO9fKLVPRMYmPZtBqFNohv9xC3X6A0AuIfHAXx9GUuEBB 9Z8CtkSIrA1T/gVxB3/a2n+rrvTUD8K7Uzs0V9fw2cfyc9FmiI/yM5EX7iv3ol+cihlg QJkAyMaphZV95yK9LdbmnHhDIx+rvHq99FRSaVvxnCLBSQ+buon3WMKbEx8jsWKlOLmh 2ASTc9+U/lycns5ddSezJoUBbjGCcUhvjJ7PABw55iZWZ3gDw52iZ4Dw3C7/WpIcqLIF 9sDh5KefHoVrKcdZJdzSJ5Q6TuL8s+bpYCKbMff0OI3iKsc02TsYXSBKaQU49dZUGd3d TB8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si2456011edq.24.2020.11.06.19.42.20; Fri, 06 Nov 2020 19:42:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728609AbgKGDjJ (ORCPT + 99 others); Fri, 6 Nov 2020 22:39:09 -0500 Received: from mail-m1271.qiye.163.com ([115.236.127.1]:55927 "EHLO mail-m1271.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728178AbgKGDjH (ORCPT ); Fri, 6 Nov 2020 22:39:07 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.157]) by mail-m1271.qiye.163.com (Hmail) with ESMTPA id 1DB295820CE; Sat, 7 Nov 2020 11:29:43 +0800 (CST) From: Bernard Zhao To: Greg Kroah-Hartman , Jiri Slaby , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH 2/2] drivers/tty: delete break after goto/return Date: Fri, 6 Nov 2020 19:29:24 -0800 Message-Id: <20201107032924.25044-3-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201107032924.25044-1-bernard@vivo.com> References: <20201107032924.25044-1-bernard@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGEhMGEhIGRlLQ0IaVkpNS09MSkJMQ0hPSUtVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NRw6Qxw4Dj8tIxwvCktLTTkW Kk4KCglVSlVKTUtPTEpCTENPSk5OVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUlMS083Bg++ X-HM-Tid: 0a75a0c0ad9798b6kuuu1db295820ce Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete break after goto/return, which will never run. Signed-off-by: Bernard Zhao --- drivers/tty/nozomi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index d42b854cb7df..946cc16827aa 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -414,11 +414,9 @@ static void read_mem32(u32 *buf, const void __iomem *mem_addr_start, buf16 = (u16 *) buf; *buf16 = __le16_to_cpu(readw(ptr)); goto out; - break; case 4: /* 4 bytes */ *(buf) = __le32_to_cpu(readl(ptr)); goto out; - break; } while (i < size_bytes) { @@ -460,7 +458,6 @@ static u32 write_mem32(void __iomem *mem_addr_start, const u32 *buf, buf16 = (const u16 *)buf; writew(__cpu_to_le16(*buf16), ptr); return 2; - break; case 1: /* * also needs to write 4 bytes in this case * so falling through.. @@ -468,7 +465,6 @@ static u32 write_mem32(void __iomem *mem_addr_start, const u32 *buf, case 4: /* 4 bytes */ writel(__cpu_to_le32(*buf), ptr); return 4; - break; } while (i < size_bytes) { -- 2.29.0