mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 21:37:25 +02:00
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>
This commit is contained in:
parent
28e26e927c
commit
40f6d26566
|
|
@ -733,7 +733,6 @@ static int rmi_f54_probe(struct rmi_function *fn)
|
|||
v4l2_device_unregister(&f54->v4l2);
|
||||
remove_wq:
|
||||
cancel_delayed_work_sync(&f54->work);
|
||||
flush_workqueue(f54->workqueue);
|
||||
destroy_workqueue(f54->workqueue);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user