]> www.infradead.org Git - users/jedix/linux-maple.git/commit
octeontx2-af: mcs: Remove redundant 'flush_workqueue()' calls
authorChen Ni <nichen@iscas.ac.cn>
Mon, 24 Mar 2025 08:08:54 +0000 (16:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 16:24:40 +0000 (09:24 -0700)
commitb2d1e4c2cb8a27693acd1add5ef7295a976a63dd
tree48837a960d436394718399d31efc308fb5cdf019
parent1f6154227b49c3d3f306f624858e695bfee50aae
octeontx2-af: mcs: 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: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250324080854.408188-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c