Skip to contentSkip to conversation

rapidio: remove unneeded flush_workqueue

PATCH New [email protected] 1 participant 1 message Apr 24, 2022 Rapidio

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rapidio: remove unneeded flush_workqueue

From: ran jianping <[email protected]>

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

---
 drivers/rapidio/rio_cm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/rapidio/rio_cm.c +0 -1
index db4c265287ae..f2c0d6aa911f 100644
@@ -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 */
Signature · 1 line
2.25.1