Skip to content

Commit 0b8d073

Browse files
Chen Nisre
authored andcommitted
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: Chen Ni <nichen@iscas.ac.cn> Link: https://lore.kernel.org/r/20250312073729.1430053-1-nichen@iscas.ac.cn Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 4ebeb27 commit 0b8d073

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/power/supply/mt6370-charger.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ static void mt6370_chg_destroy_wq(void *data)
772772
{
773773
struct workqueue_struct *wq = data;
774774

775-
flush_workqueue(wq);
776775
destroy_workqueue(wq);
777776
}
778777

0 commit comments

Comments
 (0)