]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: soc-core: tidyup for snd_soc_add_card_controls()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 7 Aug 2019 01:31:08 +0000 (10:31 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 8 Aug 2019 19:56:54 +0000 (20:56 +0100)
commit9b98c7c2a0599084c7ed629b5f88f474d2578307
tree2c29f2c7493d32844603cccf2c9ce5e7c01e3858
parentdaa480bde6b3a9b728965e52efffc329ccee3f77
ASoC: soc-core: tidyup for snd_soc_add_card_controls()

snd_soc_add_card_controls() registers controls by using
for(... i < num; ...). If controls was NULL, num should be zero.
Thus, we don't need to check about controls pointer.
This patch also cares missing return value.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87blx1ahoi.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c