Commit e9e8fc9e authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

ASoC: fsl_mqs: remove set but not used variable 'bclk'

Fixes gcc '-Wunused-but-set-variable' warning:

sound/soc/fsl/fsl_mqs.c: In function fsl_mqs_hw_params:
sound/soc/fsl/fsl_mqs.c:54:6: warning: variable bclk set but not used [-Wunused-but-set-variable]

It is never used, so can be removed.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191006105522.58560-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 03fe492e
...@@ -51,10 +51,9 @@ static int fsl_mqs_hw_params(struct snd_pcm_substream *substream, ...@@ -51,10 +51,9 @@ static int fsl_mqs_hw_params(struct snd_pcm_substream *substream,
struct fsl_mqs *mqs_priv = snd_soc_component_get_drvdata(component); struct fsl_mqs *mqs_priv = snd_soc_component_get_drvdata(component);
unsigned long mclk_rate; unsigned long mclk_rate;
int div, res; int div, res;
int bclk, lrclk; int lrclk;
mclk_rate = clk_get_rate(mqs_priv->mclk); mclk_rate = clk_get_rate(mqs_priv->mclk);
bclk = snd_soc_params_to_bclk(params);
lrclk = params_rate(params); lrclk = params_rate(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