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>
This commit is contained in:
parent
f6d1a81484
commit
6eb1c2a63d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue