Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157566
b: refs/heads/master
c: 33e319f
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Mark Brown committed Jul 13, 2009
1 parent 03b9eb2 commit 7594ab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc369cf504c51d36765e18b0c28a09a92d28ed79
refs/heads/master: 33e319fba727708ee45fec70091c498da4e8f606
4 changes: 2 additions & 2 deletions trunk/sound/soc/codecs/stac9766.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int stac9766_ac97_write(struct snd_soc_codec *codec, unsigned int reg,
stac9766_ac97_write(codec, AC97_INT_PAGING, 1);
return 0;
}
if (reg / 2 > ARRAY_SIZE(stac9766_reg))
if (reg / 2 >= ARRAY_SIZE(stac9766_reg))
return -EIO;

soc_ac97_ops.write(codec->ac97, reg, val);
Expand All @@ -168,7 +168,7 @@ static unsigned int stac9766_ac97_read(struct snd_soc_codec *codec,
stac9766_ac97_write(codec, AC97_INT_PAGING, 1);
return val;
}
if (reg / 2 > ARRAY_SIZE(stac9766_reg))
if (reg / 2 >= ARRAY_SIZE(stac9766_reg))
return -EIO;

if (reg == AC97_RESET || reg == AC97_GPIO_STATUS ||
Expand Down

0 comments on commit 7594ab0

Please sign in to comment.