aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudip Mukherjee <sudip.mukherjee@codethink.co.uk>2016-03-04 05:57:14 -0500
committerMark Brown <broonie@kernel.org>2016-03-04 22:57:16 -0500
commite7a508f2b137092500fbad09d9713d3a1c5d4826 (patch)
tree4aaf981cb1e3f14527ef7bc5c063eff6fbc0e366
parentf1188b898ec5aa2e94da8fb998648a2738f4fb3b (diff)
ASoC: pcm3168a: remove unused variable
While building we were getting build warning about: sound/soc/codecs/pcm3168a.c:403:21: warning: variable 'channels' set but not used The variable channels were being assigned some value but that was never reused. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/pcm3168a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index 0c7248ab6a37..992a77edcd5d 100644
--- a/sound/soc/codecs/pcm3168a.c
+++ b/sound/soc/codecs/pcm3168a.c
@@ -400,13 +400,12 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
400 struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(codec); 400 struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(codec);
401 bool tx, master_mode; 401 bool tx, master_mode;
402 u32 val, mask, shift, reg; 402 u32 val, mask, shift, reg;
403 unsigned int rate, channels, fmt, ratio, max_ratio; 403 unsigned int rate, fmt, ratio, max_ratio;
404 int i, min_frame_size; 404 int i, min_frame_size;
405 snd_pcm_format_t format; 405 snd_pcm_format_t format;
406 406
407 rate = params_rate(params); 407 rate = params_rate(params);
408 format = params_format(params); 408 format = params_format(params);
409 channels = params_channels(params);
410 409
411 ratio = pcm3168a->sysclk / rate; 410 ratio = pcm3168a->sysclk / rate;
412 411