mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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:
parent
585834a5ee
commit
df3e647d68
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user