diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-14 20:26:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-19 13:23:38 +0100 |
commit | 07fab5a469a5e01f8ca48c8459003d16c5c26f35 (patch) | |
tree | b44e7a02284942dcb0dd34a2213e6c24b10b1ea8 /drivers/net/ieee802154/ca8210.c | |
parent | cb3dc8901ba4f748f46287a42049a3a5c1f6b63c (diff) | |
download | linux-07fab5a469a5e01f8ca48c8459003d16c5c26f35.tar.gz linux-07fab5a469a5e01f8ca48c8459003d16c5c26f35.tar.bz2 linux-07fab5a469a5e01f8ca48c8459003d16c5c26f35.zip |
ieee802154: 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: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154/ca8210.c')
-rw-r--r-- | drivers/net/ieee802154/ca8210.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 3a2824f24caa..ece6ff6049f6 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -2938,9 +2938,7 @@ static int ca8210_dev_com_init(struct ca8210_priv *priv) */ static void ca8210_dev_com_clear(struct ca8210_priv *priv) { - flush_workqueue(priv->mlme_workqueue); destroy_workqueue(priv->mlme_workqueue); - flush_workqueue(priv->irq_workqueue); destroy_workqueue(priv->irq_workqueue); } |