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>
This commit is contained in:
Erik Andrén 2009-01-21 03:43:49 -03:00 committed by Mauro Carvalho Chehab
parent 04e84f8719
commit 4c3414eeb3

View File

@ -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,