soc: qcom: apr: Remove redundant 'flush_workqueue()' calls
authorXu Wang <vulab@iscas.ac.cn>
Fri, 14 Jan 2022 08:50:19 +0000 (08:50 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 Jan 2022 22:44:47 +0000 (16:44 -0600)
'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>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220114085019.42904-1-vulab@iscas.ac.cn
drivers/soc/qcom/apr.c

index 82ca12c9328a87996bd31155869eb2dba55a5120..3caabd8733227d18a8c3529165e76ca89af52c63 100644 (file)
@@ -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);
 }