[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250312074021.1430114-1-nichen@iscas.ac.cn>
Date: Wed, 12 Mar 2025 15:40:21 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: mporter@...nel.crashing.org,
alex.bou9@...il.com,
linux-kernel@...r.kernel.org
Cc: Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] rapidio/rio_cm: 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.
This was generated with coccinelle:
@@
expression E;
@@
- flush_workqueue(E);
destroy_workqueue(E);
Signed-off-by: Chen Ni <nichen@...as.ac.cn>
---
drivers/rapidio/rio_cm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rapidio/rio_cm.c b/drivers/rapidio/rio_cm.c
index 9135227301c8..c5662c6c52fd 100644
--- a/drivers/rapidio/rio_cm.c
+++ b/drivers/rapidio/rio_cm.c
@@ -2196,7 +2196,6 @@ static void riocm_remove_mport(struct device *dev)
if (!found)
return;
- flush_workqueue(cm->rx_wq);
destroy_workqueue(cm->rx_wq);
/* Release channels bound to this mport */
--
2.25.1
Powered by blists - more mailing lists