summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorJason Wang <wangborong@cdjrlc.com>2022-05-08 04:34:00 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-05-08 08:14:51 +0200
commitecaed1a26f7215f48420a9c02e229b84b5fbb882 (patch)
tree61887e3f9680421781f9b4b632535b16182acadd /drivers/w1
parentw1: ds2438: remove redundant initialization of variable crc (diff)
downloadlinux-ecaed1a26f7215f48420a9c02e229b84b5fbb882.tar.xz
linux-ecaed1a26f7215f48420a9c02e229b84b5fbb882.zip
w1: no need to initialise statics to 0
Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations. Signed-off-by: Jason Wang <wangborong@cdjrlc.com> Link: https://lore.kernel.org/r/20220508023400.102244-1-wangborong@cdjrlc.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index b651e42161e6..bc11cdd2e4f2 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -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");