thermal: core: remove unnecessary mutex_init()
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 16 Sep 2020 06:21:39 +0000 (14:21 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Oct 2020 10:08:35 +0000 (12:08 +0200)
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
drivers/thermal/thermal_core.c

index a6616e5..49ae4a6 100644 (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;