]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: wm_adsp: Remove duplicated code to find firmware file
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 10 Mar 2026 14:18:12 +0000 (14:18 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2026 14:52:52 +0000 (14:52 +0000)
commit2c7c27025374abbdeda201ad103ddf27e8079aec
tree3cdeb903d3620c08b2756e3f9b4d1e2699373bb3
parentbf2d44d07de726b0393439cb4d4defc5cf89a4fc
ASoC: wm_adsp: Remove duplicated code to find firmware file

The 3rd search case in wm_adsp_request_firmware_files() does exactly the
same bin file searches as the case immediately above it. Merge the
conditional from the 3rd case into the second case so the duplicated code
can be removed.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260310141817.1871794-6-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c