aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2025-03-12 15:37:29 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2025-03-17 16:00:09 +0100
commit0b8d073f6c66d7110ac9fab1f13a09337e03f1b6 (patch)
treef3b72f36d9a8c959d3063b5ae260e90f56e006c5 /drivers
parentRevert "power: supply: bq27xxx: do not report bogus zero values" (diff)
downloadwireguard-linux-0b8d073f6c66d7110ac9fab1f13a09337e03f1b6.tar.xz
wireguard-linux-0b8d073f6c66d7110ac9fab1f13a09337e03f1b6.zip
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@iscas.ac.cn> Link: https://lore.kernel.org/r/20250312073729.1430053-1-nichen@iscas.ac.cn Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/supply/mt6370-charger.c1
1 files changed, 0 insertions, 1 deletions
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);
}