diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/da7210.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index 89cea32f9424..b9cbaeb09e05 100644 --- a/sound/soc/codecs/da7210.c +++ b/sound/soc/codecs/da7210.c | |||
@@ -181,7 +181,7 @@ static const u8 da7210_reg[] = { | |||
181 | static inline u32 da7210_read_reg_cache(struct snd_soc_codec *codec, u32 reg) | 181 | static inline u32 da7210_read_reg_cache(struct snd_soc_codec *codec, u32 reg) |
182 | { | 182 | { |
183 | u8 *cache = codec->reg_cache; | 183 | u8 *cache = codec->reg_cache; |
184 | BUG_ON(reg > ARRAY_SIZE(da7210_reg)); | 184 | BUG_ON(reg >= ARRAY_SIZE(da7210_reg)); |
185 | return cache[reg]; | 185 | return cache[reg]; |
186 | } | 186 | } |
187 | 187 | ||