ASoC: wm_adsp: Move check for control existence
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 13 Sep 2021 16:00:43 +0000 (17:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:00:29 +0000 (13:00 +0100)
commit6477960755fb2c0ca9b0497bc86abfa4ee173556
tree5fff915263426620d64de8844cde48884c9fb8f4
parentd07a6d454ffa310ee306d57f486eb64380bbdfff
ASoC: wm_adsp: Move check for control existence

Checking earlier in the function if a control already exists avoids
superfluous string construction and also prepares for future
refactoring.

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