Skip to contentSkip to conversation

Input: synaptics-rmi4 - Remove redundant 'flush_workqueue()' calls

PATCH New Xu Wang 1 participant 1 message Jan 14, 2022

Subsystems (2)
lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 Input: synaptics-rmi4 - 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.

---
 drivers/input/rmi4/rmi_f54.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/rmi4/rmi_f54.c +0 -1
index 93b328c796c6..c5ce907535ef 100644
@@ -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;
 }
Signature · 1 line
2.25.1