Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1080325pxb; Tue, 3 Nov 2020 22:36:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/sGsBBp3Qw+IG+2B2ViO+CyD42It8OdRD3fD46yKkAnBj51KPlzegjaQhkZsi0nj7Eqf+ X-Received: by 2002:a50:951e:: with SMTP id u30mr7401437eda.197.1604471787042; Tue, 03 Nov 2020 22:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604471787; cv=none; d=google.com; s=arc-20160816; b=ErK5j19sGySpqB+pxADCKIyib34DzzGL37OG/NSEfepqnWnov7uGQ4qI8I/E4CpXia 1tXBNf131FogNGvGNF/Gi0HYp3dPayfJOZ8IauQtPXXsBeE0YQoF1sQ4/c6PSRtn2nyQ b/oYSEpsANNf/zFpKO53djnCsP+JuRiFMPrOtAZ1STQh5MXRdFdVfNNPKTCc6kR+nbXr MTC0sjZgt+ApfeHDwXgeGp50CMkVkZG3GCapxQvotegqWlmSXb6q3FR4BVAWumlU9CXQ pNsHoSwWzxxqIieJIe5/tFK9TLMIE2Q4AnvaDFipTrGoSHIIkgysUpc0E4vw5VAH/fEP pfbg== 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=JBP3NNuvr0e2IBq/BtsxiE1nJuFIiIj4wbUlp3VtwKdTgv0mZDivcJOJ2dlPnAqd8B 43X/mxeJm598zMtwNBGTTmE9o4fTi1qp4E1wptFLxeSNI4+1HY0+y7CAXiWJThfCweZu lfQg7VGF2Vd8VGWYXlYlPGF2sLYpwtioOBi9H+kqUi/Nc9ZnlniSBZqFnZFfzzG91fOV ux4e6CgUl/QKtdsWoENrR6LE09i+4ui21GC7PZiMW2l3obW2D6IBK+xri/WQmMQIyLyY +9S3g5I8u1n5520HHEWAhg2b3gIJpdvyf6K8o6dDldm5OE2bwGTMo3BOZFKurTrEUI7c BVmQ== 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 oi22si1016156ejb.466.2020.11.03.22.36.04; Tue, 03 Nov 2020 22:36:27 -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 S1728751AbgKDGdy (ORCPT + 99 others); Wed, 4 Nov 2020 01:33:54 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:62398 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbgKDGdv (ORCPT ); Wed, 4 Nov 2020 01:33:51 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.157]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 67222482C58; Wed, 4 Nov 2020 14:33:45 +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:26 -0800 Message-Id: <20201104063327.15572-5-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 oVCBIfWUFZHh8ZSklMHU8dS0NNVkpNS09PTEpNSU5MSkJVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OTY6CCo*Gj8fGRhIGT1NHRkR HwkwCVZVSlVKTUtPT0xKTUlNSkpCVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUlNTkI3Bg++ X-HM-Tid: 0a7591f617b993bakuws67222482c58 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