Skip to content

Commit 6a71a66

Browse files
Chen Nidtor
authored andcommitted
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. 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>
1 parent 45601c6 commit 6a71a66

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/input/misc/cs40l50-vibra.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ static int cs40l50_erase(struct input_dev *dev, int effect_id)
480480

481481
static void cs40l50_remove_wq(void *data)
482482
{
483-
flush_workqueue(data);
484483
destroy_workqueue(data);
485484
}
486485

0 commit comments

Comments
 (0)