[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250312073729.1430053-1-nichen@iscas.ac.cn>
Date: Wed, 12 Mar 2025 15:37:29 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: sre@...nel.org,
matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com,
linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Cc: Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] power: supply: mt6370: Remove redundant 'flush_workqueue()' calls
'destroy_workqueue()' already drains the queue before destroying it, so
there is no need to flush it explicitly.
Remove the redundant 'flush_workqueue()' calls.
This was generated with coccinelle:
@@
expression E;
@@
- flush_workqueue(E);
destroy_workqueue(E);
Signed-off-by: Chen Ni <nichen@...as.ac.cn>
---
drivers/power/supply/mt6370-charger.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power/supply/mt6370-charger.c b/drivers/power/supply/mt6370-charger.c
index a6939c6059c7..98579998b300 100644
--- a/drivers/power/supply/mt6370-charger.c
+++ b/drivers/power/supply/mt6370-charger.c
@@ -772,7 +772,6 @@ static void mt6370_chg_destroy_wq(void *data)
{
struct workqueue_struct *wq = data;
- flush_workqueue(wq);
destroy_workqueue(wq);
}
--
2.25.1
Powered by blists - more mailing lists