diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/anysee.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/anysee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index 2f408d2e1ef3..f511d105081f 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c | |||
@@ -178,14 +178,14 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, | |||
178 | inc = 1; | 178 | inc = 1; |
179 | } | 179 | } |
180 | if (ret) | 180 | if (ret) |
181 | return ret; | 181 | break; |
182 | 182 | ||
183 | i += inc; | 183 | i += inc; |
184 | } | 184 | } |
185 | 185 | ||
186 | mutex_unlock(&d->i2c_mutex); | 186 | mutex_unlock(&d->i2c_mutex); |
187 | 187 | ||
188 | return i; | 188 | return ret ? ret : i; |
189 | } | 189 | } |
190 | 190 | ||
191 | static u32 anysee_i2c_func(struct i2c_adapter *adapter) | 191 | static u32 anysee_i2c_func(struct i2c_adapter *adapter) |