thermal: core: remove unnecessary mutex_init()
PATCH 1/1 thermal: core: remove unnecessary mutex_init()
The mutex poweroff_lock is initialized statically. It is unnecessary to initialize by mutex_init().
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/thermal/thermal_core.c | 1 - 1 file changed, 1 deletion(-)
drivers/thermal/thermal_core.c +0 -1
@@ -1652,7 +1652,6 @@ static int __init thermal_init(void)if (result) goto error; -mutex_init (&poweroff_lock); result =thermal_register_governors ();if (result) goto error;
Signature · 1 line
2.23.0
Daniel Lezcano
AppliedQuoted 5 lines · Qinglang Miao
The mutex
poweroff_lockis initialized statically. It is unnecessary to initialize bymutex_init().Signed-off-by Qinglang Miao <[email protected]>---
Applied, thanks
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog