Browse Source

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>
Dan Carpenter 10 years ago
parent
commit
6eb1c2a63d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      sound/soc/codecs/max98925.c

+ 0 - 2
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;
 }