diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-16 08:21:39 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-10-12 12:08:35 +0200 |
commit | df3e647d68249384a970a76e8642bc5901488424 (patch) | |
tree | a890142e0108909802042dafe862ee252f50d854 | |
parent | thermal/idle_inject: Fix comment of idle_duration_us and name of latency_ns (diff) | |
download | linux-df3e647d68249384a970a76e8642bc5901488424.tar.xz linux-df3e647d68249384a970a76e8642bc5901488424.zip |
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
-rw-r--r-- | drivers/thermal/thermal_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index a6616e530a84..49ae4a61cbe6 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -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; |