summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-01-21 07:43:49 +0100
committerErik Andrén <erik.andren@gmail.com>2009-01-21 07:43:49 +0100
commit5b87a2f7c24397e15869398e8c2b7c6f59a4cb40 (patch)
treef59ff239d667e7d7173cd8092e490681068e18c3
parent8c0be3648f4bdd6dd43fc0166abb3f4880d8983d (diff)
downloadmediapointer-dvb-s2-5b87a2f7c24397e15869398e8c2b7c6f59a4cb40.tar.gz
mediapointer-dvb-s2-5b87a2f7c24397e15869398e8c2b7c6f59a4cb40.tar.bz2
gspca - m5602: Remove useless error check
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_core.c b/linux/drivers/media/video/gspca/m5602/m5602_core.c
index 93302f31a..9147e3927 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/linux/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,