Re: [PATCH net-next] octeontx2-af: mcs: Remove redundant 'flush_workqueue()' calls
From: Simon Horman
Date: Tue Mar 25 2025 - 11:45:32 EST
On Mon, Mar 24, 2025 at 04:08:54PM +0800, Chen Ni wrote:
> '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@xxxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>