]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7291): em28xx: correct use of and fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2008 16:09:09 +0000 (13:09 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 20 Mar 2008 15:39:00 +0000 (12:39 -0300)
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>
drivers/media/video/em28xx/em28xx-core.c

index 8630ee09adddc4179f2482dc64f8e44cf1c10a4d..c1caaa855b99b16e9d09962a0000e5d48817bd5f 100644 (file)
@@ -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);
        }