aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-12-08 12:31:34 -0500
committerMark Brown <broonie@kernel.org>2016-12-15 06:22:52 -0500
commitbfe48dffc80e530d5e61efcbf03637493c5ffc0e (patch)
treed28ae6605f1d1c737840daf7e581584dac9af0cc
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: img: remove unused ‘format’
In img_prl_out_hw_params(), 'format' is initialized but never used. So remove it. sound/soc/img/img-parallel-out.c: In function ‘img_prl_out_hw_params’: sound/soc/img/img-parallel-out.c:126:19: warning: variable ‘format’ set but not used [-Wunused-but-set-variable] snd_pcm_format_t format; Cc: Damien.Horsley <Damien.Horsley@imgtec.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/img/img-parallel-out.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/img/img-parallel-out.c b/sound/soc/img/img-parallel-out.c
index c1610a054d65..33ceb207ee70 100644
--- a/sound/soc/img/img-parallel-out.c
+++ b/sound/soc/img/img-parallel-out.c
@@ -123,10 +123,8 @@ static int img_prl_out_hw_params(struct snd_pcm_substream *substream,
123 struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai); 123 struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
124 unsigned int rate, channels; 124 unsigned int rate, channels;
125 u32 reg, control_set = 0; 125 u32 reg, control_set = 0;
126 snd_pcm_format_t format;
127 126
128 rate = params_rate(params); 127 rate = params_rate(params);
129 format = params_format(params);
130 channels = params_channels(params); 128 channels = params_channels(params);
131 129
132 switch (params_format(params)) { 130 switch (params_format(params)) {