ASoC: max98925: reading beyond the end of the array
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Jul 2015 08:55:27 +0000 (11:55 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 21 Jul 2015 10:40:38 +0000 (11:40 +0100)
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>
sound/soc/codecs/max98925.c

index eddf8bc..0883d87 100644 (file)
@@ -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;
 }