aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/common/sst-ipc.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-08-07 10:30:53 +0900
committerMark Brown <broonie@kernel.org>2019-08-07 14:25:58 +0100
commitb8ba3b572c70c8559ef76c1e0ca02e7b05126e8c (patch)
treefed437df9f7f45d845e0fd6fbc93c9a0a5f1e180 /sound/soc/intel/common/sst-ipc.c
parentASoC: soc-core: reuse rtdcom at snd_soc_rtdcom_add() (diff)
downloadlinux-dev-b8ba3b572c70c8559ef76c1e0ca02e7b05126e8c.tar.xz
linux-dev-b8ba3b572c70c8559ef76c1e0ca02e7b05126e8c.zip
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.c')
0 files changed, 0 insertions, 0 deletions