Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2449098pxp; Sun, 13 Mar 2022 18:55:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUR8FMpsQ3K35TOlqSz1EotKjX5tfhK5GS+widltYlUUJ76aJXlSjiEl3PliaiZn5r8zf7 X-Received: by 2002:a17:907:9720:b0:6db:a7d2:d170 with SMTP id jg32-20020a170907972000b006dba7d2d170mr11010974ejc.187.1647222910591; Sun, 13 Mar 2022 18:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647222910; cv=none; d=google.com; s=arc-20160816; b=qSchVE+tekCfoohIzMSEWY2zkhA2GYs2dgkeJEVNaZvzAUMvv8YzdgaMjKMJ0lI7EU 5VcGy2AvvzWQbeHEp/r/KbB0kH64FTb3ZeJQnwqpxGAcxzEZW3+DfvdOwIyAUolX0U35 NJ7qKXw2Uo8jJi15EbUb3s0DH4RBRnlUmxOp4k6T04JlSbzTHlRSTDEitaZJDUqHp5BO Dq2zpbfcuO7gUlZoy1pLEe2DxpHNNiWbY4qtTFaw5j5TePeaz805WBDigOPsp0R4t+nj 0zP9xDalxkmVDnD7//d9mpw1BRdV454vu4klZ/+aFuegX40Dj5bLwFAYfOYRyPfJ8lGx +NmQ== 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:dkim-signature; bh=dGqDyQgzdiFLcvH5r9tsctHC3rcl0R9x0Jzu2tfLUi4=; b=R+3VREVCwNXTEr4iuOulGIyc4EYhxsYPQt7mnqCbXkFstkdoyRdCY+Ls2Te95hhBgx 5tQGlTthvyNilUshofobvnb/tSQyICCoWQw36Dwm4b9x1De6yD9NdW5PD4VK+Z9DImdF 9QKwZh2282Te59jrK0+xyje2vqh3NGTbpu6tEZ5dBrw4jmttSZ+/Sgqbd7caKNteS7JA k5jCM73PVnTeKmBFhmEIV+KKjRuWEEriCU9LWBFpmWNEgUtYMEflvWN6xLypBJa3qWKg EEdd24t4Io+Qd27R+yxydzWkM12relYOluIC7zo+Z4uk8EU8pkyUB3yBNIYhIjNZajsC +dpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Ay3cT00V; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs38-20020a1709073ea600b006d82832fb25si9963512ejc.429.2022.03.13.18.54.46; Sun, 13 Mar 2022 18:55:10 -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=Ay3cT00V; 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 S233548AbiCMEdn (ORCPT + 99 others); Sat, 12 Mar 2022 23:33:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbiCMEdm (ORCPT ); Sat, 12 Mar 2022 23:33:42 -0500 Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54537117C92 for ; Sat, 12 Mar 2022 20:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=dGqDy QgzdiFLcvH5r9tsctHC3rcl0R9x0Jzu2tfLUi4=; b=Ay3cT00V1gR4Bvew1GQU7 9INDkJIkzw9Smz6pD2GEmSJp/1N4yNvukh8goE82sVrQ24bTx6AL5pFUqvaUJhFz G2s77YCq8J36gSdO48Z6zGHjdvcVwPIddJ1KYpY17+4TA4d3Q9UQPd2ZHxlGkO9M WLcF1iOXqQgVdR9GuHyFXg= Received: from localhost.localdomain (unknown [120.204.79.168]) by smtp11 (Coremail) with SMTP id D8CowAB3XHjPaC1ifqf0BA--.16206S4; Sun, 13 Mar 2022 11:46:02 +0800 (CST) From: lizhe To: gregkh@linuxfoundation.org, rafael@kernel.org, sensor1010@163.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] drivers/dd.c : Remove the initial value of the global variable Date: Sat, 12 Mar 2022 19:45:16 -0800 Message-Id: <20220313034516.5729-1-sensor1010@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: D8CowAB3XHjPaC1ifqf0BA--.16206S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7XFWUZF45ur47Kw4UCFyrtFb_yoWxKFX_Ca nrWFZrXryYgr4kCF15Aw13Zr9Fga1fZr4vyw4ftrya9ay7J3W5K3WDuFy5Aw4rWr90qFZF yr4Yqr1Uur1DCjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRN1v3DUUUUU== X-Originating-IP: [120.204.79.168] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBohrCq1aEDBcAyQAAsR X-Spam-Status: No, score=-1.9 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, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org The global variable driver_deferred_probe_enable has a default value of false and does not need to be initialized to false Signed-off-by: lizhe --- drivers/base/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index f47cab21430f..7fcd895d49be 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -152,7 +152,7 @@ void driver_deferred_probe_del(struct device *dev) mutex_unlock(&deferred_probe_mutex); } -static bool driver_deferred_probe_enable = false; +static bool driver_deferred_probe_enable; /** * driver_deferred_probe_trigger() - Kick off re-probing deferred devices * -- 2.25.1