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>
This commit is contained in:
parent
94ea9392e1
commit
c138f67ad4
@ -132,7 +132,6 @@ static void __exit batadv_exit(void)
|
|||||||
rtnl_link_unregister(&batadv_link_ops);
|
rtnl_link_unregister(&batadv_link_ops);
|
||||||
unregister_netdevice_notifier(&batadv_hard_if_notifier);
|
unregister_netdevice_notifier(&batadv_hard_if_notifier);
|
||||||
|
|
||||||
flush_workqueue(batadv_event_workqueue);
|
|
||||||
destroy_workqueue(batadv_event_workqueue);
|
destroy_workqueue(batadv_event_workqueue);
|
||||||
batadv_event_workqueue = NULL;
|
batadv_event_workqueue = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user