]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Minor clean and redundant code removal
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 30 Jun 2022 10:14:59 +0000 (11:14 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jun 2022 12:40:30 +0000 (13:40 +0100)
commit8646c2da65c48fa8e24f673fce5f9613c82664cd
tree331b8240692c7a28464caf71f29f4eb4c81b06ba
parent7cff28f8a3a63959cbd0f00a4a982317905e90ec
ASoC: wm_adsp: Minor clean and redundant code removal

The cs_dsp core will return an error if passed a NULL cs_dsp struct so
there is no need for the wm_adsp_write|read_ctl functions to manually
check that. The cs_dsp core will also check the data is within bounds of
the control so the additional bounds check is redundant too. Simplify
things a bit by removing said code.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220630101459.3442327-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c