]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Input: cs40l50 - remove redundant flush_workqueue() calls
authorChen Ni <nichen@iscas.ac.cn>
Tue, 1 Jul 2025 18:33:18 +0000 (11:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Jul 2025 18:34:40 +0000 (11:34 -0700)
destroy_workqueue() already drains the queue before destroying it, so
there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250312072940.1429931-1-nichen@iscas.ac.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/cs40l50-vibra.c

index dce3b0ec8cf3682b16c1ae316b76281f625d4ace..0fc7ab032cf5131d11e2effa1a5a340c3be1e4af 100644 (file)
@@ -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);
 }