summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-07-21 11:55:27 +0300
committerMark Brown <broonie@kernel.org>2015-07-21 11:40:38 +0100
commit6eb1c2a63d0415bd66c9c866b7d405662f50d5e4 (patch)
treefb96e186121f586e4b24a36d7716191e6e92e805
parentf6d1a814844efc4b326538bd35a8daecd37921ed (diff)
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>
-rw-r--r--sound/soc/codecs/max98925.c2
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;
}