Skip to contentSkip to conversation

thermal: core: remove unnecessary mutex_init()

PATCH Applied Qinglang Miao 2 participants 2 messages Sep 16, 2020 – Sep 22, 2020 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: core: remove unnecessary mutex_init()

The mutex poweroff_lock is initialized statically. It is unnecessary to initialize by mutex_init().

---
 drivers/thermal/thermal_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/thermal/thermal_core.c +0 -1
index a6616e530..49ae4a61c 100644
@@ -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
#1 lore raw
Quoted 5 lines · Qinglang Miao

The mutex poweroff_lock is initialized statically. It is unnecessary to initialize by mutex_init().

---

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