Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chen Ni and committed by
Mark Brown
3cab1fc8 3e330acf

-1
-1
sound/soc/codecs/cs35l56.c
··· 1441 1441 if (cs35l56->base.irq) 1442 1442 devm_free_irq(cs35l56->base.dev, cs35l56->base.irq, &cs35l56->base); 1443 1443 1444 - flush_workqueue(cs35l56->dsp_wq); 1445 1444 destroy_workqueue(cs35l56->dsp_wq); 1446 1445 1447 1446 pm_runtime_dont_use_autosuspend(cs35l56->base.dev);