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

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
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment