diff options
author | Antti Palosaari <crope@iki.fi> | 2011-06-16 19:02:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:55:57 -0400 |
commit | 16b2dc2a8b44ec796791af9f69cce22f7cde0410 (patch) | |
tree | 5fdd8b27c4079c6f54301e66d111850467d72301 | |
parent | ae81aab3fa6fe540947d1829a126f2071727b641 (diff) |
[media] af9015: small optimization
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 3de4641caa2..0bfe83b63e0 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -306,12 +306,12 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate. | |||
306 | ret = af9015_ctrl_msg(d, &req); | 306 | ret = af9015_ctrl_msg(d, &req); |
307 | i += 2; | 307 | i += 2; |
308 | } else if (msg[i].flags & I2C_M_RD) { | 308 | } else if (msg[i].flags & I2C_M_RD) { |
309 | ret = -EINVAL; | ||
310 | if (msg[i].addr == | 309 | if (msg[i].addr == |
311 | af9015_af9013_config[0].demod_address) | 310 | af9015_af9013_config[0].demod_address) { |
311 | ret = -EINVAL; | ||
312 | goto error; | 312 | goto error; |
313 | else | 313 | } |
314 | req.cmd = READ_I2C; | 314 | req.cmd = READ_I2C; |
315 | req.i2c_addr = msg[i].addr; | 315 | req.i2c_addr = msg[i].addr; |
316 | req.addr = addr; | 316 | req.addr = addr; |
317 | req.mbox = mbox; | 317 | req.mbox = mbox; |