aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-06-16 20:02:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:57 -0300
commit16b2dc2a8b44ec796791af9f69cce22f7cde0410 (patch)
tree5fdd8b27c4079c6f54301e66d111850467d72301
parentae81aab3fa6fe540947d1829a126f2071727b641 (diff)
downloadkernel_goldelico_gta04-16b2dc2a8b44ec796791af9f69cce22f7cde0410.zip
kernel_goldelico_gta04-16b2dc2a8b44ec796791af9f69cce22f7cde0410.tar.gz
kernel_goldelico_gta04-16b2dc2a8b44ec796791af9f69cce22f7cde0410.tar.bz2
[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.c8
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 3de4641..0bfe83b 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;