mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
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:
parent
04e84f8719
commit
4c3414eeb3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user