Commit 0b8d073f authored by Chen Ni's avatar Chen Ni Committed by Sebastian Reichel
Browse files

power: supply: mt6370: 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: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250312073729.1430053-1-nichen@iscas.ac.cn


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 4ebeb27b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -772,7 +772,6 @@ static void mt6370_chg_destroy_wq(void *data)
{
	struct workqueue_struct *wq = data;

	flush_workqueue(wq);
	destroy_workqueue(wq);
}