Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1208108pxb; Wed, 4 Nov 2020 02:58:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEU+4sU6P9t1aucj6lIU3Z5QcwzdKHZRKQA/lmaMxiG3PNNE4tRAvHIAX9ER+PR/P6Fo0e X-Received: by 2002:a50:c058:: with SMTP id u24mr12512870edd.28.1604487480897; Wed, 04 Nov 2020 02:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604487480; cv=none; d=google.com; s=arc-20160816; b=SU2+o7IqbB/Oo8FQauceAVhjIiaiLcYPA5jWxXcXXan+o4WP1fVKd5cndC4+M5eVwj pcg3y+1YFE7ZN8ibAO60QHLNeTI3FMz2cMT54nQJT7O4lmDGZC0gyyE1rBg3I0FAEjhG PiQY5qi2HB15Ozd2KaBWCpX5abQNq+jAVmFe49runbSclwIeb5vG4b8MaK4eoqne2z7E ne7VJdAmC/jOyBweAQ6eu31P12Ke5r5VWz+92tOOWrP+EM7OG1ZKnha3scKf1SZGxSzq kZ1dvXQqBbg0j6Zi6huRpw3MY2DhqRtBkC7k78gSdY/YtoslneMbIaRp/VFDhK7jhdoB BLIQ== 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=/QovOPyt4McKVwrf86U6j3ltShMKqYjIWZiENAg9VRs=; b=WzgZ/1Rhrl/zDj+cztPNQRKB0ArBbcw+QNSn2YmCY3EWrjeHc351oiHklN4uYdBJL9 MgYE78cGRTGnhI6asxfY18um4Yluwl1M+Mfc8Gr2dcSSRvIGRomh7rLpup+RSQ3nqoCL 9eJbIeFanFGor5VyQddJ7pf599UcgJSb0pbrr/6s6VceP/KXGO5QTiGwloorzJqA7dCm kphXhdYaviOyLot3A0WvLPY1KhDLkIEjGU0wMsROASu+lSAv7NJllhrzW+OpebnGjlpr 18aVAVGGGcdH9RP7MPV5tsxf0qza22u1SEF/TAdVoRx3bI0Oxg/WaZzr4eHGfmPy5cux Te7Q== 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 s19si1009215edx.88.2020.11.04.02.57.38; Wed, 04 Nov 2020 02:58:00 -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 S1729469AbgKDKx4 (ORCPT + 99 others); Wed, 4 Nov 2020 05:53:56 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:35880 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729447AbgKDKx4 (ORCPT ); Wed, 4 Nov 2020 05:53:56 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.156]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 3E749482D14; Wed, 4 Nov 2020 18:53:51 +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 return Date: Wed, 4 Nov 2020 02:53:31 -0800 Message-Id: <20201104105331.16654-3-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 oVCBIfWUFZS0MdGUsfGUIdSB4aVkpNS09PQ0xJSEpOSENVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PCI6PSo6Mz8oNx8qA00ICE9I HjoaCTBVSlVKTUtPT0NMSUhKQkxJVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5NWVdZCAFZQUlOQ0s3Bg++ X-HM-Tid: 0a7592e437fa93bakuws3e749482d14 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/serial/imx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 1731d9728865..09703079db7b 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -320,7 +320,6 @@ static u32 imx_uart_readl(struct imx_port *sport, u32 offset) switch (offset) { case UCR1: return sport->ucr1; - break; case UCR2: /* * UCR2_SRST is the only bit in the cached registers that might @@ -331,16 +330,12 @@ static u32 imx_uart_readl(struct imx_port *sport, u32 offset) if (!(sport->ucr2 & UCR2_SRST)) sport->ucr2 = readl(sport->port.membase + offset); return sport->ucr2; - break; case UCR3: return sport->ucr3; - break; case UCR4: return sport->ucr4; - break; case UFCR: return sport->ufcr; - break; default: return readl(sport->port.membase + offset); } -- 2.29.0