diff mbox series

[2/4] batman-adv: Remove redundant 'flush_workqueue()' calls

Message ID 20220302163522.102842-3-sw@simonwunderlich.de
State Not Applicable, archived
Delegated to: Simon Wunderlich
Headers show
Series [1/4] batman-adv: Start new development cycle | expand

Commit Message

Simon Wunderlich March 2, 2022, 4:35 p.m. UTC
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

'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);

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
 net/batman-adv/main.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 5207cd8d6ad8..8f1b724d0412 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -132,7 +132,6 @@  static void __exit batadv_exit(void)
-	flush_workqueue(batadv_event_workqueue);
 	batadv_event_workqueue = NULL;