Commit 4e6ae78e authored by vulab's avatar vulab Committed by Bjorn Andersson
Browse files

soc: qcom: apr: 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.

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220114085019.42904-1-vulab@iscas.ac.cn
parent 4b41a9d0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -653,7 +653,6 @@ static void apr_remove(struct rpmsg_device *rpdev)

	pdr_handle_release(apr->pdr);
	device_for_each_child(&rpdev->dev, NULL, apr_remove_device);
	flush_workqueue(apr->rxwq);
	destroy_workqueue(apr->rxwq);
}