Skip to contentSkip to conversation

w1:do not initialise statics to 0.

PATCH New Xin Gao 1 participant 1 message Jul 20, 2022 W1 dallas's 1-wire bus

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 w1:do not initialise statics to 0.

do not initialise statics to 0.

---
 drivers/w1/w1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/w1/w1.c +1 -1
index f2ae2e563dc5..bb28e36993d6 100644
@@ -32,7 +32,7 @@ static int w1_timeout = 10;
 module_param_named(timeout, w1_timeout, int, 0);
 MODULE_PARM_DESC(timeout, "time in seconds between automatic slave searches");
 
-static int w1_timeout_us = 0;
+static int w1_timeout_us;
 module_param_named(timeout_us, w1_timeout_us, int, 0);
 MODULE_PARM_DESC(timeout_us,
 		 "time in microseconds between automatic slave searches");
Signature · 1 line
2.30.2