diff options
Diffstat (limited to 'sound/soc/codecs/ad1980.c')
-rw-r--r-- | sound/soc/codecs/ad1980.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c index c3c5d0eee37a..faf358758e13 100644 --- a/sound/soc/codecs/ad1980.c +++ b/sound/soc/codecs/ad1980.c | |||
@@ -109,7 +109,7 @@ static unsigned int ac97_read(struct snd_soc_codec *codec, | |||
109 | default: | 109 | default: |
110 | reg = reg >> 1; | 110 | reg = reg >> 1; |
111 | 111 | ||
112 | if (reg >= (ARRAY_SIZE(ad1980_reg))) | 112 | if (reg >= ARRAY_SIZE(ad1980_reg)) |
113 | return -EINVAL; | 113 | return -EINVAL; |
114 | 114 | ||
115 | return cache[reg]; | 115 | return cache[reg]; |
@@ -123,7 +123,7 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg, | |||
123 | 123 | ||
124 | soc_ac97_ops.write(codec->ac97, reg, val); | 124 | soc_ac97_ops.write(codec->ac97, reg, val); |
125 | reg = reg >> 1; | 125 | reg = reg >> 1; |
126 | if (reg < (ARRAY_SIZE(ad1980_reg))) | 126 | if (reg < ARRAY_SIZE(ad1980_reg)) |
127 | cache[reg] = val; | 127 | cache[reg] = val; |
128 | 128 | ||
129 | return 0; | 129 | return 0; |