From patchwork Tue Jun 15 11:49:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiabing Wan X-Patchwork-Id: 12321203 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 2E102C48BDF for ; Tue, 15 Jun 2021 11:49:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C02C6145E for ; Tue, 15 Jun 2021 11:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbhFOLvj (ORCPT ); Tue, 15 Jun 2021 07:51:39 -0400 Received: from mail-m121144.qiye.163.com ([115.236.121.144]:50790 "EHLO mail-m121144.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhFOLvj (ORCPT ); Tue, 15 Jun 2021 07:51:39 -0400 DKIM-Signature: a=rsa-sha256; b=W1Cvo/+NZqZ9VxbAitK/kHlzo+N9vKHmzeOPazvGGfXugCiajk9i40AgKvnB44vP8M4CdRxWreWXvE0e/U8TRdoKLkWAsrwlyGees9ko2YexUMK0tNwcCjBV1ERDmDUBBltrfIHbsQ6IeprNYSgWiZe6XfFOlF6VnposU90hBNw=; c=relaxed/relaxed; s=default; d=vivo.com; v=1; bh=0/P63dEAOAi+kPvhAWGq4Q0ts3IqPeJedDxz2jbvCbk=; h=date:mime-version:subject:message-id:from; Received: from Wanjb.localdomain (unknown [36.152.145.182]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id BFE64AC028E; Tue, 15 Jun 2021 19:49:33 +0800 (CST) From: Wan Jiabing To: "Rafael J. Wysocki" , Daniel Lezcano , Wan Jiabing , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpuidle: remove unneeded semicolon in teo.c Date: Tue, 15 Jun 2021 19:49:20 +0800 Message-Id: <20210615114921.8340-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQ0NNHlYaQhpOQ0MdHx9JTkNVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NjY6Nww6Az8QN0gpC04cKz05 FDxPC0hVSlVKTUlITE5MTExPSkxCVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKTkxKNwY+ X-HM-Tid: 0a7a0f815c41b039kuuubfe64ac028e Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix following coccicheck warning: drivers/cpuidle/governors/teo.c:315:10-11: Unneeded semicolon Signed-off-by: Wan Jiabing --- drivers/cpuidle/governors/teo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c index 1e0b2f828abb..7b91060e82f6 100644 --- a/drivers/cpuidle/governors/teo.c +++ b/drivers/cpuidle/governors/teo.c @@ -312,7 +312,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, /* Check if there is any choice in the first place. */ if (drv->state_count < 2) { - idx = 0;; + idx = 0; goto end; } if (!dev->states_usage[0].disable) {