Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sudip Mukherjee and committed by
Mark Brown
e7a508f2 f1188b89

+1 -2
+1 -2
sound/soc/codecs/pcm3168a.c
··· 400 400 struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(codec); 401 401 bool tx, master_mode; 402 402 u32 val, mask, shift, reg; 403 - unsigned int rate, channels, fmt, ratio, max_ratio; 403 + unsigned int rate, fmt, ratio, max_ratio; 404 404 int i, min_frame_size; 405 405 snd_pcm_format_t format; 406 406 407 407 rate = params_rate(params); 408 408 format = params_format(params); 409 - channels = params_channels(params); 410 409 411 410 ratio = pcm3168a->sysclk / rate; 412 411