* [PATCH -next] thermal: core: remove unnecessary mutex_init()
@ 2020-09-16 6:21 Qinglang Miao
2020-09-22 15:27 ` Daniel Lezcano
0 siblings, 1 reply; 2+ messages in thread
From: Qinglang Miao @ 2020-09-16 6:21 UTC (permalink / raw)
To: Zhang Rui, Daniel Lezcano, Amit Kucheria
Cc: linux-pm, linux-kernel, Qinglang Miao
The mutex poweroff_lock is initialized statically. It is
unnecessary to initialize by mutex_init().
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
drivers/thermal/thermal_core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index a6616e530..49ae4a61c 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -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;
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] thermal: core: remove unnecessary mutex_init()
2020-09-16 6:21 [PATCH -next] thermal: core: remove unnecessary mutex_init() Qinglang Miao
@ 2020-09-22 15:27 ` Daniel Lezcano
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2020-09-22 15:27 UTC (permalink / raw)
To: Qinglang Miao, Zhang Rui, Amit Kucheria; +Cc: linux-pm, linux-kernel
On 16/09/2020 08:21, Qinglang Miao wrote:
> The mutex poweroff_lock is initialized statically. It is
> unnecessary to initialize by mutex_init().
>
> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
> ---
Applied, thanks
--
<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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-22 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 6:21 [PATCH -next] thermal: core: remove unnecessary mutex_init() Qinglang Miao
2020-09-22 15:27 ` Daniel Lezcano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.