diff mbox series

soc: qcom: apr: Remove redundant 'flush_workqueue()' calls

Message ID 20220114085019.42904-1-vulab@iscas.ac.cn
State Accepted
Commit 4e6ae78ee61957800657d56ba78a10f034de174e
Headers show
Series soc: qcom: apr: Remove redundant 'flush_workqueue()' calls | expand

Commit Message

Wentao Liang Jan. 14, 2022, 8:50 a.m. UTC
'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: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/soc/qcom/apr.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bjorn Andersson Feb. 4, 2022, 6:35 p.m. UTC | #1
On Fri, 14 Jan 2022 08:50:19 +0000, Xu Wang wrote:
> 'destroy_workqueue()' already drains the queue before destroying it, so
> there is no need to flush it explicitly.
> 
> Remove the redundant 'flush_workqueue()' calls.
> 
> 

Applied, thanks!

[1/1] soc: qcom: apr: Remove redundant 'flush_workqueue()' calls
      commit: 4e6ae78ee61957800657d56ba78a10f034de174e

Best regards,
diff mbox series

Patch

diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c
index 82ca12c9328a..3caabd873322 100644
--- a/drivers/soc/qcom/apr.c
+++ b/drivers/soc/qcom/apr.c
@@ -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);
 }