diff options
author | Antti Palosaari <crope@iki.fi> | 2011-06-17 01:02:41 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 22:55:57 +0200 |
commit | 16b2dc2a8b44ec796791af9f69cce22f7cde0410 (patch) | |
tree | 5fdd8b27c4079c6f54301e66d111850467d72301 | |
parent | [media] af9015: map remote for MSI DIGIVOX Duo (diff) | |
download | linux-16b2dc2a8b44ec796791af9f69cce22f7cde0410.tar.xz linux-16b2dc2a8b44ec796791af9f69cce22f7cde0410.zip |
[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 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; |