Skip to content

Commit

Permalink
ASoC: max98925: reading beyond the end of the array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 21, 2015
1 parent f6d1a81 commit 6eb1c2a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/max98925.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6eb1c2a

Please sign in to comment.