Message ID | 20221029155619.12154-1-sensor1010@163.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1414561wru; Sat, 29 Oct 2022 09:14:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wYLno0v+iNcTeHd8GK7qt0eMRM7ThUKZVIaDRFqJXzx/kW0awOOAU0Hc8VD5T0QLW0owK X-Received: by 2002:a17:90b:4c02:b0:20a:7d26:149 with SMTP id na2-20020a17090b4c0200b0020a7d260149mr23323616pjb.134.1667060071759; Sat, 29 Oct 2022 09:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667060071; cv=none; d=google.com; s=arc-20160816; b=veBSMEfjSSb51q+OBnxzumqhiuXbVfCaHC9eTIA7DMq/G42UjSwzKbf84dNfAwCpbt uu6OB9YJBuP+Lq9d5M2q4rsfoOGHO+l9xNmxD8UrsuVEGy8MXyknse+73v2Sl1FSukMF 3JC1OkkstkYSdfkH3dT5IGMoYH9oSTy2lpRRvCrNvhUW9jN3rYpTf/pj9nIivbd0j9HN O0TZl+oQ+j5o03XEpP5Fe8CJSdAuE7QFCHczHtGO9D3XdGT6Q9PNI5AsmslBS+VbVCjb PxdNqpXL/rKGgKGXQ9sbmnPZlnXNtYxpXQ+EMiEitwXbJzVO7xNXil5sSLl/NuYqxX4J sSpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=uKNIl0VCi9tiAEi3awARGiYJ39SyrDAmIGjdTHmuGxc=; b=GRepoU8lxbD2Xt03HydDsUUY7/7ljD3Vb4e1ldAzI7iclkoh/oeF07HEVc4HM7OhPL y2wdASNTCMhgCWhhNxdkz7F/hOBO58Oc44ShKqQGQKlykutJuNwHREVYr0SFns/6ybKH BbUxBRWL5uUYrWynbDpugHVyTlP1ZltgiN4hYdvEEtVYKDPsC0A3ireko04X9CWbxmLH MJYrSxBI+0KeLyue7vyT9nTEbYZlVqJNK+vVmXP2EIKqIjKCO1uC+7HYFMIdSUMIYfab +vi2TGY5HpP/UYnTYSLa0+7D1JtCLtJo6pYjHyKhdDvs8Vbw3QApvfFC2D/SUC55AXuL HeHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=llmvjIEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170902e80a00b001846e0e0511si2610504plg.226.2022.10.29.09.14.19; Sat, 29 Oct 2022 09:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=llmvjIEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbiJ2P6M (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sat, 29 Oct 2022 11:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJ2P6K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 11:58:10 -0400 Received: from mail-m971.mail.163.com (mail-m971.mail.163.com [123.126.97.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA0B553D32 for <linux-kernel@vger.kernel.org>; Sat, 29 Oct 2022 08:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=uKNIl0VCi9tiAEi3aw ARGiYJ39SyrDAmIGjdTHmuGxc=; b=llmvjIEErgKY7VF4jPzNWNyumToQACIfD0 lwGEJc2ke89R0aeuQgP7jeg+FTI8i85EXcwAIQcAufct/IetyFvsmGhln3XXcNOQ RTdxssJYSZCN+Fq553/7Y/q6xNokyU+G0V+wrG1SYwbIIF7yNjxrtB8xwgI8jomq Tyk/b7otY= Received: from localhost.localdomain (unknown [153.37.166.1]) by smtp1 (Coremail) with SMTP id GdxpCgDHcqUlTV1jrIz4oQ--.18687S4; Sat, 29 Oct 2022 23:56:44 +0800 (CST) From: lizhe <sensor1010@163.com> To: tglx@linutronix.de, peterz@infradead.org, tony.luck@intel.com, hdegoede@redhat.com Cc: linux-kernel@vger.kernel.org, lizhe <sensor1010@163.com> Subject: [PATCH v1] kernel/stop_matche.c : remove redundant global variable initialization Date: Sat, 29 Oct 2022 08:56:19 -0700 Message-Id: <20221029155619.12154-1-sensor1010@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: GdxpCgDHcqUlTV1jrIz4oQ--.18687S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrKrWUGF1fGr47tF47JFW7twb_yoWxuFg_uF 10qw18Wr1Y9rW0gw12qw4rXFyDKw4Fva1IkrWxKFWUAa1kG3Z8Cw1qgr9IqF4fWrnIvF98 AwnI9Fn8tw1UGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRN3ku7UUUUU== X-Originating-IP: [153.37.166.1] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBdB2pq1gi4TLXKQAAs8 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748039181631694401?= X-GMAIL-MSGID: =?utf-8?q?1748039181631694401?= |
Series |
[v1] kernel/stop_matche.c : remove redundant global variable initialization
|
|
Commit Message
Lizhe
Oct. 29, 2022, 3:56 p.m. UTC
the global variable stop_machine_initialized has a default
value of false, no need to initialize it fo false
Signed-off-by: lizhe <sensor1010@163.com>
---
kernel/stop_machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index cedb17ba158a..d1ea5233a45e 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c @@ -47,7 +47,7 @@ struct cpu_stopper { }; static DEFINE_PER_CPU(struct cpu_stopper, cpu_stopper); -static bool stop_machine_initialized = false; +static bool stop_machine_initialized; void print_stop_info(const char *log_lvl, struct task_struct *task) {