projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585834a
)
thermal: core: remove unnecessary mutex_init()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Wed, 16 Sep 2020 06:21:39 +0000
(14:21 +0800)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/drivers/thermal/thermal_core.c
b/drivers/thermal/thermal_core.c
index
a6616e5
..
49ae4a6
100644
(file)
--- 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;