From patchwork Sat Nov 7 03:29:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernard Zhao X-Patchwork-Id: 11888509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C855C388F7 for ; Sat, 7 Nov 2020 03:31:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0677E206F4 for ; Sat, 7 Nov 2020 03:31:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="o94QMaAR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0677E206F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vivo.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=OfSSLmrcw4/stDYM6dlOWGroLFV9LhwLIMQ3iF1DDlM=; b=o94QMaARgSDstAKf6XuXJSbT5F mjTh+gHm5GG3oVgsqJ7a95JJW3FKMB7pyTM1htmaomoYFLDI/FbK3SpT/UZdt0ArSYkAcjW3Abslx GcqqRuA/8K8+AmHUozaY/I40F7wvDJBJcr+aY+tq/9wD0L+uFiB9KIER/RWF9AOQY08lhrF4w+9oB Uvyyvu3j/I4qW2ncrkmiYijNa7FOkJzWx+euHmng41aRrC4Bq+8XTjE42Th7ZjQfoYIqQRve0ZzNw r4Cwb6dwVMcNuxp/pETdbcUs3p8UQR6fEDVpfukEj/WwaUnh4yhXxeWbU/PvGuqJHsdzDTdzeb+80 iijCBTaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbEvK-0005z7-MN; Sat, 07 Nov 2020 03:29:54 +0000 Received: from mail-m1271.qiye.163.com ([115.236.127.1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbEvF-0005xp-8q for linux-arm-kernel@lists.infradead.org; Sat, 07 Nov 2020 03:29:52 +0000 Received: from ubuntu.localdomain (unknown [58.213.83.157]) by mail-m1271.qiye.163.com (Hmail) with ESMTPA id 1E156582166; Sat, 7 Nov 2020 11:29:37 +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 Subject: [PATCH 0/2] drivers/tty: delete break after return or goto Date: Fri, 6 Nov 2020 19:29:22 -0800 Message-Id: <20201107032924.25044-1-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZTRkdTUxJSkgdTBgZVkpNS09MSkJMTExPTU1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6M006FCo6Hj8pKxw3GlEdTTAT LDlPChdVSlVKTUtPTEpCTExMQ0hCVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUpDSEI3Bg++ X-HM-Tid: 0a75a0c0965598b6kuuu1e156582166 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_222949_533243_2501C3B9 X-CRM114-Status: UNSURE ( 4.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: opensource.kernel@vivo.com, Bernard Zhao Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Greg: This patch sereies delete code which never run: { case XXX: return XXX; break; //The break is meanless, so just delete it. case YYY: goto YYY; break; //The break is meanless, so just delete it. ...... } Bernard Zhao (2): tty/serial: delete break after return drivers/tty: delete break after goto/return drivers/tty/nozomi.c | 4 ---- drivers/tty/serial/imx.c | 5 ----- 2 files changed, 9 deletions(-)