summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-01-21 09:43:49 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-17 01:20:46 +0400
commit4c3414eeb3a275a017399ea162615292b00d087f (patch)
tree5904a654743006116feb7ee434ea1e98fe8f2485 /drivers
parent04e84f87192b5b599187e3f5edc54ebe4a89e954 (diff)
downloadlinux-4c3414eeb3a275a017399ea162615292b00d087f.tar.xz
V4L/DVB (11631): gspca - m5602: Remove useless error check
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c
index 93302f31aa6f..9147e39271c3 100644
--- a/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/drivers/media/video/gspca/m5602/m5602_core.c
@@ -84,10 +84,11 @@ int m5602_wait_for_i2c(struct sd *sd)
{
int err;
u8 data;
+
do {
err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, &data);
} while ((data & I2C_BUSY) && !err);
- return (err < 0) ? err : 0;
+ return err;
}
int m5602_read_sensor(struct sd *sd, const u8 address,