diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-08-07 10:30:53 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-07 14:25:58 +0100 |
commit | b8ba3b572c70c8559ef76c1e0ca02e7b05126e8c (patch) | |
tree | fed437df9f7f45d845e0fd6fbc93c9a0a5f1e180 /sound/soc/intel/common/sst-ipc.h | |
parent | 32d2c172fe88705058310635a732259c0a98e89b (diff) |
ASoC: soc-core: tidyup for snd_soc_dapm_new_controls()
snd_soc_dapm_new_controls() registers controls by using
for(... i < num; ...). It means if widget was NULL, num should be zero.
Thus, we don't need to check about widget pointer.
This patch also cares missing return value.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ftmdahow.wl-kuninori.morimoto.gx@renesas.com
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/common/sst-ipc.h')
0 files changed, 0 insertions, 0 deletions