diff options
author | Erik Andrén <erik.andren@gmail.com> | 2009-01-21 07:43:49 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 23:20:46 +0200 |
commit | 4c3414eeb3a275a017399ea162615292b00d087f (patch) | |
tree | 5904a654743006116feb7ee434ea1e98fe8f2485 /drivers/media/video/gspca/m5602 | |
parent | V4L/DVB (11630): gspca - s5k83a: Add resolution annotations (diff) | |
download | linux-4c3414eeb3a275a017399ea162615292b00d087f.tar.xz linux-4c3414eeb3a275a017399ea162615292b00d087f.zip |
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/media/video/gspca/m5602')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_core.c | 3 |
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, |