ASoC: samsung: smdk_wm8580: remove unused ‘bfs’

In smdk_hw_params(), 'bfs' is initialized and assigned bits based on
params_width, but never used.

We could have removed the whole switch case but then driver might be
relying on checking bits, so I have kept the case for now.

sound/soc/samsung/smdk_wm8580.c: In function ‘smdk_hw_params’:
sound/soc/samsung/smdk_wm8580.c:35:6: warning: variable ‘bfs’ set but not used [-Wunused-but-set-variable]
  int bfs, rfs, ret;

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Vinod Koul 2016-12-08 23:01:36 +05:30 committed by Mark Brown
parent a5de5b74a5
commit e85a709974
1 changed files with 1 additions and 4 deletions

View File

@ -32,14 +32,11 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai = rtd->codec_dai; struct snd_soc_dai *codec_dai = rtd->codec_dai;
unsigned int pll_out; unsigned int pll_out;
int bfs, rfs, ret; int rfs, ret;
switch (params_width(params)) { switch (params_width(params)) {
case 8: case 8:
bfs = 16;
break;
case 16: case 16:
bfs = 32;
break; break;
default: default:
return -EINVAL; return -EINVAL;