diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-08-07 10:31:08 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-08-08 20:56:54 +0100 |
| commit | 9b98c7c2a0599084c7ed629b5f88f474d2578307 (patch) | |
| tree | 2c29f2c7493d32844603cccf2c9ce5e7c01e3858 /tools/perf/scripts/python | |
| parent | daa480bde6b3a9b728965e52efffc329ccee3f77 (diff) | |
| download | linux-9b98c7c2a0599084c7ed629b5f88f474d2578307.tar.gz linux-9b98c7c2a0599084c7ed629b5f88f474d2578307.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
