Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chen Ni and committed by
Dmitry Torokhov
6a71a667 45601c66

-1
-1
drivers/input/misc/cs40l50-vibra.c
··· 480 480 481 481 static void cs40l50_remove_wq(void *data) 482 482 { 483 - flush_workqueue(data); 484 483 destroy_workqueue(data); 485 484 } 486 485