Skip to content

Commit 40f6d26

Browse files
ran jianpingdtor
authored andcommitted
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>
1 parent 28e26e9 commit 40f6d26

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/input/rmi4/rmi_f54.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,6 @@ static int rmi_f54_probe(struct rmi_function *fn)
733733
v4l2_device_unregister(&f54->v4l2);
734734
remove_wq:
735735
cancel_delayed_work_sync(&f54->work);
736-
flush_workqueue(f54->workqueue);
737736
destroy_workqueue(f54->workqueue);
738737
return ret;
739738
}

0 commit comments

Comments
 (0)