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)
commite8010efc7b83038d1c18abe1b8d171e3c7d4ed92
tree331b8240692c7a28464caf71f29f4eb4c81b06ba
parent871325d800ed532ba5874257f04bb4ae75125bc4
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