diff mbox series

[-next] thermal: core: remove unnecessary mutex_init()

Message ID 20200916062139.191233-1-miaoqinglang@huawei.com (mailing list archive)
State Accepted, archived
Delegated to: Zhang Rui
Headers show
Series [-next] thermal: core: remove unnecessary mutex_init() | expand

Commit Message

Qinglang Miao Sept. 16, 2020, 6:21 a.m. UTC
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(-)

Comments

Daniel Lezcano Sept. 22, 2020, 3:27 p.m. UTC | #1
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
diff mbox series

Patch

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;