From: Colin Ian King Date: Wed, 1 Aug 2018 10:47:39 +0000 (+0100) Subject: ASoC: nau8540: remove redundant variable osrate X-Git-Tag: v4.19~92^2~2^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d101f9b96ee08f0454989bc3adb10e6cf7f3f953;p=platform%2Fkernel%2Flinux-rpi3.git ASoC: nau8540: remove redundant variable osrate Variable osrate is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'osrate' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/nau8540.c b/sound/soc/codecs/nau8540.c index 17104f8..e3c8cd1 100644 --- a/sound/soc/codecs/nau8540.c +++ b/sound/soc/codecs/nau8540.c @@ -362,11 +362,8 @@ static const struct snd_soc_dapm_route nau8540_dapm_routes[] = { static int nau8540_clock_check(struct nau8540 *nau8540, int rate, int osr) { - int osrate; - if (osr >= ARRAY_SIZE(osr_adc_sel)) return -EINVAL; - osrate = osr_adc_sel[osr].osr; if (rate * osr > CLK_ADC_MAX) { dev_err(nau8540->dev, "exceed the maximum frequency of CLK_ADC\n");