Parcourir la 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 il y a 10 ans
Parent
commit
6eb1c2a63d
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  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;
 }