Skip to content

Commit b2d1e4c

Browse files
Chen Nikuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Geetha sowjanya <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1f61542 commit b2d1e4c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ void rvu_mcs_exit(struct rvu *rvu)
925925
if (!rvu->mcs_intr_wq)
926926
return;
927927

928-
flush_workqueue(rvu->mcs_intr_wq);
929928
destroy_workqueue(rvu->mcs_intr_wq);
930929
rvu->mcs_intr_wq = NULL;
931930
}

0 commit comments

Comments
 (0)