mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
ee896c5bf2
commit
ecaed1a26f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user