Commit 16b2dc2a authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] af9015: small optimization

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ae81aab3
...@@ -306,12 +306,12 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate. ...@@ -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); ret = af9015_ctrl_msg(d, &req);
i += 2; i += 2;
} else if (msg[i].flags & I2C_M_RD) { } else if (msg[i].flags & I2C_M_RD) {
ret = -EINVAL;
if (msg[i].addr == if (msg[i].addr ==
af9015_af9013_config[0].demod_address) af9015_af9013_config[0].demod_address) {
ret = -EINVAL;
goto error; goto error;
else }
req.cmd = READ_I2C; req.cmd = READ_I2C;
req.i2c_addr = msg[i].addr; req.i2c_addr = msg[i].addr;
req.addr = addr; req.addr = addr;
req.mbox = mbox; req.mbox = mbox;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment