Skip to contentSkip to conversation

drivers/dd.c : Remove the initial value of the global variable

PATCH In review lizhe 2 participants 2 messages Mar 13, 2022 Driver core

lore
Share & tools
lore

lizhe

author
#0 lore raw

PATCH 1/1 drivers/dd.c : Remove the initial value of the global variable

The global variable driver_deferred_probe_enable has a default value of false and does not need to be initialized to false

---
 drivers/base/dd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/dd.c +1 -1
index f47cab21430f..7fcd895d49be 100644
@@ -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
  *
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 5 lines · lizhe

The global variable driver_deferred_probe_enable has a default value of false and does not need to be initialized to false

Is this the full name you sign documents with?

Also, I got two different copies of this change, which one is correct?

thanks,

greg k-h