Skip to content

Commit 3cab1fc

Browse files
Chen Nibroonie
authored andcommitted
ASoC: cs35l56: 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://patch.msgid.link/20250312072635.1429870-1-nichen@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3e330ac commit 3cab1fc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/soc/codecs/cs35l56.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,6 @@ void cs35l56_remove(struct cs35l56_private *cs35l56)
14411441
if (cs35l56->base.irq)
14421442
devm_free_irq(cs35l56->base.dev, cs35l56->base.irq, &cs35l56->base);
14431443

1444-
flush_workqueue(cs35l56->dsp_wq);
14451444
destroy_workqueue(cs35l56->dsp_wq);
14461445

14471446
pm_runtime_dont_use_autosuspend(cs35l56->base.dev);

0 commit comments

Comments
 (0)