Re: [PATCH] em28xx-core.c: add missing parentheses in em28xx_write_ac97()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roel Kluin
Date: Wednesday, March 5, 2008 - 11:43 am

Joe Perches wrote:


ok.
---

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index 7d1537c..c797472 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -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 & 1))
 			return 0;
 		msleep(5);
 	}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] em28xx-core.c: add missing parentheses in em28 ..., Roel Kluin, (Wed Mar 5, 11:43 am)
Re: [PATCH] em28xx-core.c: add missing parentheses in em28 ..., Mauro Carvalho Chehab, (Mon Mar 10, 5:23 am)