Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1079898pxb; Tue, 3 Nov 2020 22:35:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwk3qgZeSOm7wjCAE08xqBuQyvJdj3yz7JxbIQ4CMADIFrnw4cGshshAxiOnOu/20lRN1I X-Received: by 2002:a17:906:d285:: with SMTP id ay5mr23271072ejb.84.1604471726914; Tue, 03 Nov 2020 22:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604471726; cv=none; d=google.com; s=arc-20160816; b=En7bYfjOO1JpMFs2MoXBlw6ajChG7i/v+/YZkalIehIz8Ny2aNa3eM989IyIumzbGV cLmX8lf+6aGxOnGvuYMiah9li78jqUB32veS9ZOkHaqFQD8TRfjXUSKYV6wCE4Oy8vMv a6prnRZG8VgcnqsfucpxtRn2lKBX8zOwX+GKNckOwJ+ZVRe+8QYSzRArF8Qq09uli+hA RRB0qPV4vOnstG7A8Qn5YPo6IqpDkFJZHWXkGQjMSQCZIEDqLs0hCrLnztS7GOiV7lPW oUxqEuhbRBu8zYiGi+sgR541mbfyqHrdDBaEaHtTzaHe6RjdEHZNuhnErqpRh+Jr0zrt CUXQ== 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=wFQvCkKGr7IF6Vkp+KBWolWeKdsDwtwUzvo3WicKr6g=; b=ZlW7ie+8K1RYE8eBfu9U24elcJjkGMuUKjMkaE2+xH4CfzubNP3qIm9HHBRYLAhxaU Wo3ymsh6dPUpXMhOu1ms/cSoTIWyJoKNzxkAC+4Ql54VPcLyWDYMa9TejpVQw2INmpJd XDAAetWF8f9Ol//idO4xNSjyp8mcAaPV83vHpr1wFr8q8Ul6z/RX+ZO4Gn1U3ZwcU01V JUm9d/bbR0qDzQ4XoRE8eMA5YJu1IfQubwUeLPXYuZOv7hQKPNVc3kCueN2l8IPgshXb ZgtxBdVrnnjkHJuJKYxhjM7Pc0bUL73o271LUOn5Xao10Ka4rBD5O6CkZQgF8sK+iaaM tnow== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si660076edt.339.2020.11.03.22.35.04; Tue, 03 Nov 2020 22:35:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727036AbgKDGdn (ORCPT + 99 others); Wed, 4 Nov 2020 01:33:43 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:61558 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbgKDGdn (ORCPT ); Wed, 4 Nov 2020 01:33:43 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.157]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id BA271482BD6; Wed, 4 Nov 2020 14:33:39 +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@vivo.com Subject: [PATCH 1/2] drivers/tty: delete break after return Date: Tue, 3 Nov 2020 22:33:23 -0800 Message-Id: <20201104063327.15572-2-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201104063327.15572-1-bernard@vivo.com> References: <20201104063327.15572-1-bernard@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSx0YHx0fTUsdThkZVkpNS09PTEpNSUtLSU1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Oi46OQw*ST8iIxgUCTw0HSID OA1PFApVSlVKTUtPT0xKTUlLT09NVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUlNTkI3Bg++ X-HM-Tid: 0a7591f6018c93bakuwsba271482bd6 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete break after 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