Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1749414pxb; Fri, 6 Nov 2020 19:42:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJytqqEiC3r0Q/cHm/TS4ZiggzdDjBQYLOmsg/vpJPrVB2eEYvy9sY9esowr01ZGYaQ9fvdl X-Received: by 2002:a17:907:250b:: with SMTP id y11mr5090624ejl.21.1604720569769; Fri, 06 Nov 2020 19:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604720569; cv=none; d=google.com; s=arc-20160816; b=MMkw2hFsNJz3RxuwhydASMoJShhOjspGF229kLB+fisFh3B1X5pMej00j/CQTKzOcI To3Tlfae+UrXnNo6ifPrbwsMqG5lMqkN+SnPQu5FlJZe8qsiE4HssJDiM2xEpW7R+XyD Pn6ivFrszA3jRTSr/+hStQKVqW7DeMC6ZfLCSF7s+VXsEPejJ2lrR2zoX6Y+HS0r84gl BmdjHHsHDLyc/yfOYBJpElrEPgtVDYjgraZNl+E3wZwJzEYZ8XKSx3k8kqLDWk/1DxqV mT7y5l7LGq59WdYPVOwD+ApxUNX5vhFrwIhHQqbEPsoHcpKDAWfhvbJpXMpvU/mkuIGo OKfg== 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 :message-id:date:subject:cc:to:from; bh=oG6r8QAeaU/VDbTeuxPhRAmDV3LtvcRGGMK82ECiNA8=; b=EGVqzJtVmQd6OQ5QV3KAMoqs8bmMyHMiuUylowVHT/XFCJ9KDN4gUpmNcbng3sf7AL zW5MCulFkb7NCUalSat5BctIQNjrRcMXCNcEGsj1WtMZ1imeBr8xrsRl1KVEelP1cfnn eStWayRTl+wpTVtR9I/VOvGLvg5W/mNqJCK9N/XetZ6YeVcHOQ1wuWWNkEaW0Ae/ueJY BPTO3dxXHUnLcWi+EhLCSO/4mfJWI0pvO2cmERjO8QJ4fdLntr0z8Fs/5LAzkTh9B6nu JWgeAivvIMeNLarfo8U7FMbnn5jCFFiR90MxUkzxzqvEFti9GzXXaATcwYDtduqehuzB fXvg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx24si2415167edb.419.2020.11.06.19.42.27; Fri, 06 Nov 2020 19:42:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728411AbgKGDjH (ORCPT + 99 others); Fri, 6 Nov 2020 22:39:07 -0500 Received: from mail-m1271.qiye.163.com ([115.236.127.1]:55917 "EHLO mail-m1271.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbgKGDjH (ORCPT ); Fri, 6 Nov 2020 22:39:07 -0500 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 Cc: opensource.kernel@vivo.com, Bernard Zhao 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 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZTRkdTUxJSkgdTBgZVkpNS09MSkJMTExPTU1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6M006FCo6Hj8pKxw3GlEdTTAT LDlPChdVSlVKTUtPTEpCTExMQ0hCVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5MWVdZCAFZQUpDSEI3Bg++ X-HM-Tid: 0a75a0c0965598b6kuuu1e156582166 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.29.0