From: Dan Carpenter Date: Tue, 21 Jul 2015 08:55:27 +0000 (+0300) Subject: ASoC: max98925: reading beyond the end of the array X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6eb1c2a63d0415bd66c9c866b7d405662f50d5e4;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: max98925: reading beyond the end of the array Debug prints are seldom useful and this one has an annoying thing where it reads one space beyond the end of the array on error. Signed-off-by: Dan Carpenter Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c index eddf8bc07314..0883d87776b1 100644 --- a/sound/soc/codecs/max98925.c +++ b/sound/soc/codecs/max98925.c @@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec, break; } } - dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n", - __func__, rate_table[i].rate, *value); return ret; }