diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-08 23:01:33 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-15 11:22:35 +0000 |
commit | fc25914631d623880b5fc3abf067bcb3e8c6b4d4 (patch) | |
tree | 7220c2c160d81335eaa272f6ef45fd54091d8535 /sound/soc/codecs/pcm3168a.c | |
parent | a5de5b74a50113564a1e0850e2da96c37c35e55d (diff) | |
download | linux-fc25914631d623880b5fc3abf067bcb3e8c6b4d4.tar.bz2 |
ASoC: pcm3168a: remove unused ‘format’
In pcm3168a_hw_params(), 'format' is initialized but never used.
sound/soc/codecs/pcm3168a.c: In function ‘pcm3168a_hw_params’:
sound/soc/codecs/pcm3168a.c:405: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>
Diffstat (limited to 'sound/soc/codecs/pcm3168a.c')
-rw-r--r-- | sound/soc/codecs/pcm3168a.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c index 39bc02d5bc5d..b9d1207ccef2 100644 --- a/sound/soc/codecs/pcm3168a.c +++ b/sound/soc/codecs/pcm3168a.c @@ -402,10 +402,8 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream, u32 val, mask, shift, reg; unsigned int rate, fmt, ratio, max_ratio; int i, min_frame_size; - snd_pcm_format_t format; rate = params_rate(params); - format = params_format(params); ratio = pcm3168a->sysclk / rate; |