Commit bfe48dff authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

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: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a5de5b74
...@@ -123,10 +123,8 @@ static int img_prl_out_hw_params(struct snd_pcm_substream *substream, ...@@ -123,10 +123,8 @@ static int img_prl_out_hw_params(struct snd_pcm_substream *substream,
struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai); struct img_prl_out *prl = snd_soc_dai_get_drvdata(dai);
unsigned int rate, channels; unsigned int rate, channels;
u32 reg, control_set = 0; u32 reg, control_set = 0;
snd_pcm_format_t format;
rate = params_rate(params); rate = params_rate(params);
format = params_format(params);
channels = params_channels(params); channels = params_channels(params);
switch (params_format(params)) { switch (params_format(params)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment