[PATCH] rapidio: remove unneeded flush_workqueue

From: cgel . zte
Date: Sun Apr 24 2022 - 02:29:08 EST


From: ran jianping <ran.jianping@xxxxxxxxxx>

All work currently pending will be done first by calling destroy_workqueue,
so there is no need to flush it explicitly.

Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
Signed-off-by: ran jianping <ran.jianping@xxxxxxxxxx>
---
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 db4c265287ae..f2c0d6aa911f 100644
--- a/drivers/rapidio/rio_cm.c
+++ b/drivers/rapidio/rio_cm.c
@@ -2198,7 +2198,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