Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1079925pxb; Tue, 3 Nov 2020 22:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmBlgqZsS0+AjDhWn8IJsP8JziBfKUii9fDQ3/XBMirzkbRnnUZmks2REcbQEygjNSsKZj X-Received: by 2002:a17:906:a10a:: with SMTP id t10mr24763595ejy.89.1604471730226; Tue, 03 Nov 2020 22:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604471730; cv=none; d=google.com; s=arc-20160816; b=BLgKUeflpkY7eye0nhW72ZOB5tMy4prERtrAWY06iSD1yB7BceIeOYJ7tYmH4iI9LD PvH8h+4pQ4Rid9WDId3iyGKtRZGgnSr4jnHLrs9GSGPUlUu6LdxxCM0R1Kk2bVYHLNbb xNRxr2p21DRqOLf19SM965HWTs3PJsMELvGu1Ex1VCgHuXbaVuoQP2mJLYYvNqwwpVEo UKSzPfs4auJs5aeJBUTfeIOhNhaH0deSHivcjl3yJ9r6VKs5lhe+n96siz+ixKGjvQzB WbR3+fjBZ1DvWQncBoQkVq1OOK2b5lHnUmcwgEezvMFk4RleRs2tnFbUAJoNz6wtDdCR fwoA== 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=z/jXcyyYCHYTKfK2LkM28nblDHYK2sAnoKWYKYPfROS2EY6vNuAUwZo3NPcLXUiLTK wOMpRKAIDHcAzzGiV9nf2kPzG5ipUlyJarr0ISIvxFhZNl9RVLRwl7wuTeXsPg09Ibvn 9s71F38npd2d8VEArAFQXInhIIIG+gHMrZI4vavRh27GjqhYPyi4m78BaeXkATVkBWyl l7OwD7+gek/SfOltDDwusuzTQNJZSJH7DxVsxxNSzk0O3uIsd1h3/kLyR1trEMg/huD3 WcadJJvUGg5QhnyzEFapkjpGEYMZpzNW8YHDY/svNt25GCCwC0rzZ4GCEPpFXtg+sf+1 OWhw== 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 n9si779029ejz.693.2020.11.03.22.35.07; Tue, 03 Nov 2020 22:35:30 -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 S1727107AbgKDGdq (ORCPT + 99 others); Wed, 4 Nov 2020 01:33:46 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:61818 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbgKDGdo (ORCPT ); Wed, 4 Nov 2020 01:33:44 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.157]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id AF901482B13; Wed, 4 Nov 2020 14:33:41 +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 2/2] drivers/tty: delete break after return Date: Tue, 3 Nov 2020 22:33:24 -0800 Message-Id: <20201104063327.15572-3-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 oVCBIfWUFZGRlLHUMeHx4dTEJKVkpNS09PTEpNSUlLT09VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MTI6Ihw4HT8uPxhWCT4cHSMx CDRPCzxVSlVKTUtPT0xKTUlJT09NVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUlOTks3Bg++ X-HM-Tid: 0a7591f6094a93bakuwsaf901482b13 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