From: Chen Ni Date: Wed, 12 Mar 2025 07:37:29 +0000 (+0800) Subject: power: supply: mt6370: Remove redundant 'flush_workqueue()' calls X-Git-Tag: v6.15-rc1~102^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b8d073f6c66d7110ac9fab1f13a09337e03f1b6;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20250312073729.1430053-1-nichen@iscas.ac.cn Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/mt6370-charger.c b/drivers/power/supply/mt6370-charger.c index a6939c6059c7f..98579998b300d 100644 --- a/drivers/power/supply/mt6370-charger.c +++ b/drivers/power/supply/mt6370-charger.c @@ -772,7 +772,6 @@ static void mt6370_chg_destroy_wq(void *data) { struct workqueue_struct *wq = data; - flush_workqueue(wq); destroy_workqueue(wq); }