summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-12-08 12:31:27 -0500
committerMark Brown <broonie@kernel.org>2016-12-15 06:20:19 -0500
commitfd34045567991dc77a50163c5d0e465b423df962 (patch)
tree6627080f384f502cdca9e3509f4dfc3a1a8cc3b8 /sound
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: topology: remove unused 'err'
In soc_tplg_pcm_elems_load, a variable 'err' is initialized but not used. It is assigned return values for pcm_new_ver() but never checked, so remove it. sound/soc/soc-topology.c: In function ‘soc_tplg_pcm_elems_load’: sound/soc/soc-topology.c:1865:9: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] int i, err; Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-topology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 65670b2b408c..585b88b45f7b 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -1863,7 +1863,7 @@ static int soc_tplg_pcm_elems_load(struct soc_tplg *tplg,
1863{ 1863{
1864 struct snd_soc_tplg_pcm *pcm, *_pcm; 1864 struct snd_soc_tplg_pcm *pcm, *_pcm;
1865 int count = hdr->count; 1865 int count = hdr->count;
1866 int i, err; 1866 int i;
1867 bool abi_match; 1867 bool abi_match;
1868 1868
1869 if (tplg->pass != SOC_TPLG_PASS_PCM_DAI) 1869 if (tplg->pass != SOC_TPLG_PASS_PCM_DAI)
@@ -1897,7 +1897,7 @@ static int soc_tplg_pcm_elems_load(struct soc_tplg *tplg,
1897 _pcm = pcm; 1897 _pcm = pcm;
1898 } else { 1898 } else {
1899 abi_match = false; 1899 abi_match = false;
1900 err = pcm_new_ver(tplg, pcm, &_pcm); 1900 pcm_new_ver(tplg, pcm, &_pcm);
1901 } 1901 }
1902 1902
1903 /* create the FE DAIs and DAI links */ 1903 /* create the FE DAIs and DAI links */