V4L/DVB (7291): em28xx: correct use of and fix
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8281db3b52
commit
46cb57e628
@@ -267,7 +267,7 @@ static int em28xx_write_ac97(struct em28xx *dev, u8 reg, u8 *val)
|
|||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
if ((ret = em28xx_read_reg(dev, AC97BUSY_REG)) < 0)
|
if ((ret = em28xx_read_reg(dev, AC97BUSY_REG)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if (!(((u8)ret) & 0x01))
|
if (!(ret & 0x01))
|
||||||
return 0;
|
return 0;
|
||||||
msleep(5);
|
msleep(5);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user