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 <miaoqinglang@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200916062139.191233-1-miaoqinglang@huawei.com
This commit is contained in:
Qinglang Miao 2020-09-16 14:21:39 +08:00 committed by Daniel Lezcano
parent 585834a5ee
commit df3e647d68

View File

@ -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;