aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-01-21 01:43:49 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:46 -0400
commit4c3414eeb3a275a017399ea162615292b00d087f (patch)
tree5904a654743006116feb7ee434ea1e98fe8f2485 /drivers/media
parent04e84f87192b5b599187e3f5edc54ebe4a89e954 (diff)
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')
-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)
84{ 84{
85 int err; 85 int err;
86 u8 data; 86 u8 data;
87
87 do { 88 do {
88 err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, &data); 89 err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, &data);
89 } while ((data & I2C_BUSY) && !err); 90 } while ((data & I2C_BUSY) && !err);
90 return (err < 0) ? err : 0; 91 return err;
91} 92}
92 93
93int m5602_read_sensor(struct sd *sd, const u8 address, 94int m5602_read_sensor(struct sd *sd, const u8 address,