Skip to content

Commit

Permalink
V4L/DVB (7291): em28xx: correct use of and fix
Browse files Browse the repository at this point in the history
be less silly while we're there.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Andrew Morton authored and Mauro Carvalho Chehab committed Mar 20, 2008
1 parent 8281db3 commit 46cb57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static int em28xx_write_ac97(struct em28xx *dev, u8 reg, u8 *val)
for (i = 0; i < 10; i++) {
if ((ret = em28xx_read_reg(dev, AC97BUSY_REG)) < 0)
return ret;
if (!(((u8)ret) & 0x01))
if (!(ret & 0x01))
return 0;
msleep(5);
}
Expand Down

0 comments on commit 46cb57e

Please sign in to comment.