Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1206992pxb; Wed, 4 Nov 2020 02:55:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2n8wsP2oh5X18rx46e8vtd/c4hKSDmC58VuBilFFInETqUiz1fgKr+nKWm+6S6vdLb144 X-Received: by 2002:a17:906:f753:: with SMTP id jp19mr24063523ejb.280.1604487345079; Wed, 04 Nov 2020 02:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604487345; cv=none; d=google.com; s=arc-20160816; b=k+Gzh0qGaLUqqVfIPt1dM6fn9BRP4990rhzMyWbV0saXAe3MzZRhzbRV9lcqmKqjWD HjTau+EMzyhw6GwLlCkYeSysRxtsfH5grJUJ9kxpfkyqH5ouGFgVl+61KE1UxJTbaoCp Fn9kbyyyhl2tC0rfU3ufCYTbHoWLHyIrkdKzRnQCvX5Lhz365rj1vRUyu3MRRJGuq1kg IjLeHEVaqVmW4xi1eEAExxiwTIhB5/3ySbedIcFF/giiCB7miQ0uEoz2avmCt0tQO+UJ D6ESjCFgiWJRxstPygfj1lR18JMQjI2fj5S2CnbL/eOS6gglcdveGgVBa1mrH2MSSmwK S1ZA== 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=5VivPURjufhl7+r6wpxjVi04wWoMWLmqKwTvCgJYkjw=; b=OrGZFV3R4kPTQ1qgQ6tmK+zPWcxxnxz9Jf9BxJh5pRHTAcsSF4wxg96E/jwr092U6d Z+ZqTfBz/jjpzqbzal9PCJujEaVNCbhz1NQ65ItJnwsxPsNe8RJt0nwGC5H2Q2YZYOas oJiSO2q+f/JkVHA9keYqpdjN89mriLK2k5CPRocFPJvV+xEt87RrN5dBcrWFKSXylfjD HZWNXj4A9SXyCioxsfHtqpjagLjWMnkZGOJ8Plq9yk6fSLMEMwASIOg5a3WRY5Vpm9hQ D2zoPCUKt/7NABwdCImBDgwV5ckqyGV37W97aUT1AYwsY4XGwri1H3GjJQnP7bgrqr6n UNSg== 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 c14si1261238edr.82.2020.11.04.02.55.22; Wed, 04 Nov 2020 02:55: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729396AbgKDKxw (ORCPT + 99 others); Wed, 4 Nov 2020 05:53:52 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:35678 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbgKDKxv (ORCPT ); Wed, 4 Nov 2020 05:53:51 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.156]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 73C70482CF2; Wed, 4 Nov 2020 18:53:48 +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 1/2] drivers/tty: delete break after goto Date: Wed, 4 Nov 2020 02:53:30 -0800 Message-Id: <20201104105331.16654-2-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201104105331.16654-1-bernard@vivo.com> References: <20201104105331.16654-1-bernard@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGh4eTEtPHUxIGUxLVkpNS09PQ0xJSUNMSU9VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OTo6Qjo5Dj8fNx8QA0MYCAwU SDYKCU1VSlVKTUtPT0NMSUlCSk5OVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5NWVdZCAFZQUlNQ0g3Bg++ X-HM-Tid: 0a7592e42cfa93bakuws73c70482cf2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete break after goto, 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