diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-10 10:01:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-10 13:33:15 +0300 |
commit | b9c56ccb436d1e952bb1fc0ddf752669a116b310 (patch) | |
tree | d35ac602aa4ce03ed65ff30f72eb19913514f81d /drivers/net/ethernet/brocade/bna | |
parent | 6213f07cb542c9651ba614e784bf58ed41354936 (diff) | |
download | linux-b9c56ccb436d1e952bb1fc0ddf752669a116b310.tar.xz |
ethernet: 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>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com> #mlx*
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index b1947fd9a07c..bbdc829c3524 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -3515,7 +3515,6 @@ static void bnad_uninit(struct bnad *bnad) { if (bnad->work_q) { - flush_workqueue(bnad->work_q); destroy_workqueue(bnad->work_q); bnad->work_q = NULL; } |