batman-adv: Remove redundant 'flush_workqueue()' calls
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 10 Jan 2022 21:32:27 +0000 (22:32 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 23 Jan 2022 09:42:11 +0000 (10:42 +0100)
commitc138f67ad4721801791a01cd10c816414b33b48d
treef2c4fd7bfb6c82baf2079bff5b24a71ce537f58a
parent94ea9392e113921df1b2cffb181671e768f3f87b
batman-adv: 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: 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