Commit 40f6d265 authored by ran jianping's avatar ran jianping Committed by Dmitry Torokhov
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Link: https://lore.kernel.org/r/20220422093304.2781183-1-ran.jianping@zte.com.cn


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 28e26e92
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}