From: Qinglang Miao Date: Wed, 16 Sep 2020 06:21:39 +0000 (+0800) Subject: thermal: core: remove unnecessary mutex_init() X-Git-Tag: iomap-folio-5.17-old~2938^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df3e647d68249384a970a76e8642bc5901488424;p=users%2Fwilly%2Flinux.git 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 Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200916062139.191233-1-miaoqinglang@huawei.com --- 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;