Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1207799pxb; Wed, 4 Nov 2020 02:57:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwudmiBXTXFnUbY7jl4NBhnJZVN/3L3JcjANPh4/gjzGfRb5d+9CyHXyKWr9LitPhKsDwGZ X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr22467026ejz.3.1604487449202; Wed, 04 Nov 2020 02:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604487449; cv=none; d=google.com; s=arc-20160816; b=MwWcVU2nvCwvHpKmrS2Sl+lYCMWk0QtPJ4DVnV7ywCyLuOP38Rbs95kSeHdn+enlCr yFR63hUx2at/y+IhnWHE3WF4e/YAnICYqrTHF82kajqOjiF4Ca884TFnaYiNnChm4fun qQ9lOzAvqy8Pr/BGINo5NX5Gv5joVYRxDmnMuZLOKlZMLnCpzWr1rc0mvhNHPWXc+1Im qLsmIVQreMbTIpJfcU5LaEaUFs4+5DLTqotlOed95euUACKUgQ2mwTPIdpFimW4eXxCi iBdCq+DuMLjFsocbbC2p0NiMyRv8x+EY6VW8rUGakjr7ORSAGCZB3qEyfnuDoD2LtE42 MOjA== 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=XlSUwE+ara+agxkC1uo+2kGW0glX4NOYlA3CJzwkxCk=; b=P17AZrc7iDmxqLjvq+nF8QoSVXpeYsyibEHj+S3YIXG+B6jBHU8qXDTDN1zlA6VaoE DPoHdpFKywUP+vETQGJzEO6PpqhsLbd6PYhI2QRicOlBTNKVJQ4WLQMyMe76VbkrRjPP BrBW2mrWt2uxzPu0VNUVcvIEp+W3S6o/15Eli0NJ7cBP1ZAzwrN3oxftqsaaOY0t9M74 3j9oeoEWaOJ4Gmm6EnclvFNB1agXkg+CVy+1u/9Hjfa7v6VdlfTj2xTdTV0qnHlwniTM S5Lq8mCrULTq6Ae3Dy4bd+NkLUDWgUHJ/2QFIKN8zTgyVGdppchAg4HMpxGuDQiZWK3S o3mw== 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 c5si909627edw.91.2020.11.04.02.57.06; Wed, 04 Nov 2020 02:57:29 -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 S1729378AbgKDKxq (ORCPT + 99 others); Wed, 4 Nov 2020 05:53:46 -0500 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:35316 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgKDKxp (ORCPT ); Wed, 4 Nov 2020 05:53:45 -0500 Received: from ubuntu.localdomain (unknown [58.213.83.156]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id ABD7B482CFA; Wed, 4 Nov 2020 18:53:42 +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: Wed, 4 Nov 2020 02:53:29 -0800 Message-Id: <20201104105331.16654-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 oVCBIfWUFZGh4dSB5OSEseHUhKVkpNS09PQ0xJSUlCTUlVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OAg6Dww5Ej8iAR8fKUwCCAo3 SzgKCzlVSlVKTUtPT0NMSUlIT0NMVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlOQ1VJ SkhVQ0hVSk5NWVdZCAFZQUpCS0k3Bg++ X-HM-Tid: 0a7592e4167893bakuwsabd7b482cfa Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch sereies optimise code like: { 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. ...... } Signed-off-by: Bernard Zhao --- Bernard Zhao (2): drivers/tty/nozomi.c: delete no use break after goto drivers/tty/serial/imx.c: delete no use break after return drivers/tty/nozomi.c | 4 ---- drivers/tty/serial/imx.c | 5 ----- 2 files changed, 9 deletions(-) -- 2.29.0