projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6d1a81
)
ASoC: max98925: reading beyond the end of the array
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 21 Jul 2015 08:55:27 +0000
(11:55 +0300)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/max98925.c
b/sound/soc/codecs/max98925.c
index eddf8bc0731468fdd102be989f8f2ce23294eb59..0883d87776b1e11bd2d769e9ace59a1e3ba3df96 100644
(file)
--- 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;
}