diff options
author | Antti Palosaari <crope@iki.fi> | 2011-06-16 20:02:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:55:57 -0300 |
commit | 16b2dc2a8b44ec796791af9f69cce22f7cde0410 (patch) | |
tree | 5fdd8b27c4079c6f54301e66d111850467d72301 /drivers/media/dvb/dvb-usb | |
parent | ae81aab3fa6fe540947d1829a126f2071727b641 (diff) | |
download | talos-obmc-linux-16b2dc2a8b44ec796791af9f69cce22f7cde0410.tar.gz talos-obmc-linux-16b2dc2a8b44ec796791af9f69cce22f7cde0410.zip |
[media] af9015: small optimization
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-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 3de4641caa2f..0bfe83b63e01 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. ret = af9015_ctrl_msg(d, &req); i += 2; } else if (msg[i].flags & I2C_M_RD) { - ret = -EINVAL; if (msg[i].addr == - af9015_af9013_config[0].demod_address) + af9015_af9013_config[0].demod_address) { + ret = -EINVAL; goto error; - else - req.cmd = READ_I2C; + } + req.cmd = READ_I2C; req.i2c_addr = msg[i].addr; req.addr = addr; req.mbox = mbox; |