mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-20 04:40:28 +07:00
[media] af9015: small optimization
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ae81aab3fa
commit
16b2dc2a8b
@ -306,11 +306,11 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user