[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190412154819.oiztq2uf4teuxewn@macpro-scc.lancs.ac.uk>
Date: Fri, 12 Apr 2019 16:48:20 +0100
From: Willy Wolff <willy.mh.wolff.ml@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] driver core: fix statics initilisation
perl scripts/checkpatch.pl -f drivers/base/dd.c got red here:
ERROR: do not initialise statics to false
+static bool driver_deferred_probe_enable = false;
Signed-off-by: Willy Wolff <willy.mh.wolff.ml@...il.com>
---
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 1bc4557a0f49..38480a01d074 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -140,7 +140,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.11.0
Powered by blists - more mailing lists