]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: cs35l56: Remove redundant 'flush_workqueue()' calls
authorChen Ni <nichen@iscas.ac.cn>
Wed, 12 Mar 2025 07:26:35 +0000 (15:26 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 16 Mar 2025 23:33:44 +0000 (23:33 +0000)
'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>
sound/soc/codecs/cs35l56.c

index 735a1e487c6f57e0b931bef1a5272d7f23de6712..b3158a84b87afec87ab528e90cde84f44d3278cb 100644 (file)
@@ -1441,7 +1441,6 @@ void cs35l56_remove(struct cs35l56_private *cs35l56)
        if (cs35l56->base.irq)
                devm_free_irq(cs35l56->base.dev, cs35l56->base.irq, &cs35l56->base);
 
-       flush_workqueue(cs35l56->dsp_wq);
        destroy_workqueue(cs35l56->dsp_wq);
 
        pm_runtime_dont_use_autosuspend(cs35l56->base.dev);