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

Input: synaptics-rmi4 - remove unnecessary flush_workqueue()

All work currently pending will be done first by calling destroy_workqueue,
so there is unnecessary to flush it explicitly.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Link: https://lore.kernel.org/r/20220422093304.2781183-1-ran.jianping@zte.com.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

ran jianping and committed by
Dmitry Torokhov
40f6d265 28e26e92

-1
-1
drivers/input/rmi4/rmi_f54.c
··· 733 733 v4l2_device_unregister(&f54->v4l2); 734 734 remove_wq: 735 735 cancel_delayed_work_sync(&f54->work); 736 - flush_workqueue(f54->workqueue); 737 736 destroy_workqueue(f54->workqueue); 738 737 return ret; 739 738 }