diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-07-21 10:55:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-21 12:40:38 +0200 |
commit | 6eb1c2a63d0415bd66c9c866b7d405662f50d5e4 (patch) | |
tree | fb96e186121f586e4b24a36d7716191e6e92e805 /sound/soc/codecs | |
parent | ASoC: max98925: Remove control_data initialization (diff) | |
download | linux-6eb1c2a63d0415bd66c9c866b7d405662f50d5e4.tar.xz linux-6eb1c2a63d0415bd66c9c866b7d405662f50d5e4.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/max98925.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |