Commit df3e647d authored by Qinglang Miao's avatar Qinglang Miao Committed by Daniel Lezcano
Browse files

thermal: core: remove unnecessary mutex_init()



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

Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200916062139.191233-1-miaoqinglang@huawei.com
parent 585834a5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;