[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250312072940.1429931-1-nichen@iscas.ac.cn>
Date: Wed, 12 Mar 2025 15:29:40 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: jogletre@...nsource.cirrus.com,
fred.treven@...rus.com,
ben.bright@...rus.com,
dmitry.torokhov@...il.com,
patches@...nsource.cirrus.com,
linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] Input: cs40l50 - 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/input/misc/cs40l50-vibra.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l50-vibra.c
index dce3b0ec8cf3..0fc7ab032cf5 100644
--- a/drivers/input/misc/cs40l50-vibra.c
+++ b/drivers/input/misc/cs40l50-vibra.c
@@ -480,7 +480,6 @@ static int cs40l50_erase(struct input_dev *dev, int effect_id)
static void cs40l50_remove_wq(void *data)
{
- flush_workqueue(data);
destroy_workqueue(data);
}
--
2.25.1
Powered by blists - more mailing lists