All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] ASoC: max98925: reading beyond the end of the array
@ 2015-07-21  8:55 ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2015-07-21  8:55 UTC (permalink / raw)
  To: Liam Girdwood, Anish Kumar
  Cc: Krzysztof Kozlowski, Lars-Peter Clausen, Axel Lin, alsa-devel,
	kernel-janitors, Takashi Iwai, Mark Brown

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>

diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c
index e1753c8..ebb648a 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;
 }
 

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-21 11:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21  8:55 [patch] ASoC: max98925: reading beyond the end of the array Dan Carpenter
2015-07-21  8:55 ` Dan Carpenter
2015-07-21 10:43 ` Mark Brown
2015-07-21 10:43   ` Mark Brown
2015-07-21 10:57   ` Dan Carpenter
2015-07-21 10:57     ` Dan Carpenter
2015-07-21 11:04     ` Mark Brown
2015-07-21 11:04       ` Mark Brown
2015-07-21 10:49 ` Applied "ASoC: max98925: reading beyond the end of the array" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.