diff mbox series

ath11k: remove unneeded flush_workqueue

Message ID 20220301013246.2052570-1-lv.ruyi@zte.com.cn (mailing list archive)
State Accepted
Commit 57fe207f752a95e1929e242dfdb21c6dac741e0d
Delegated to: Kalle Valo
Headers show
Series ath11k: remove unneeded flush_workqueue | expand

Commit Message

CGEL March 1, 2022, 1:32 a.m. UTC
From: "Lv Ruyi (CGEL ZTE)" <lv.ruyi@zte.com.cn>

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@zte.com.cn>
Signed-off-by: Lv Ruyi (CGEL ZTE) <lv.ruyi@zte.com.cn>
---
 drivers/net/wireless/ath/ath11k/core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo March 10, 2022, 3:51 p.m. UTC | #1
cgel.zte@gmail.com wrote:

> 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@zte.com.cn>
> Signed-off-by: Lv Ruyi (CGEL ZTE) <lv.ruyi@zte.com.cn>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

57fe207f752a ath11k: remove unneeded flush_workqueue
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index 5d570a2cc2a5..71eb7d04c3bf 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -1417,7 +1417,6 @@  EXPORT_SYMBOL(ath11k_core_deinit);
 
 void ath11k_core_free(struct ath11k_base *ab)
 {
-	flush_workqueue(ab->workqueue);
 	destroy_workqueue(ab->workqueue);
 
 	kfree(ab);