diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-17 23:09:15 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-02 10:46:02 +0900 |
commit | a0c34c7629bee46ffd8121987d27df25a6433cc7 (patch) | |
tree | a5746e7b80487d8afc82b7ae586ca3c0de1f369e /sound/soc | |
parent | 5011454ee34a84700e9a8c7eb1138efceea9d662 (diff) | |
download | lwn-a0c34c7629bee46ffd8121987d27df25a6433cc7.tar.gz lwn-a0c34c7629bee46ffd8121987d27df25a6433cc7.zip |
ASoC: fsl_micfil: Remove set but not used variable 'osr'
Fixes gcc '-Wunused-but-set-variable' warning:
sound/soc/fsl/fsl_micfil.c: In function 'get_clk_div':
sound/soc/fsl/fsl_micfil.c:154:6: warning: variable 'osr' set but not used [-Wunused-but-set-variable]
It is never used since introduction in
commit 47a70e6fc9a8 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/fsl_micfil.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index 40c07e756481..f7f2d29f1bfe 100644 --- a/sound/soc/fsl/fsl_micfil.c +++ b/sound/soc/fsl/fsl_micfil.c @@ -151,12 +151,9 @@ static inline int get_clk_div(struct fsl_micfil *micfil, { u32 ctrl2_reg; long mclk_rate; - int osr; int clk_div; regmap_read(micfil->regmap, REG_MICFIL_CTRL2, &ctrl2_reg); - osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK) - >> MICFIL_CTRL2_CICOSR_SHIFT); mclk_rate = clk_get_rate(micfil->mclk); |