Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[media] af9015: small optimization

parent ae81aab3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);
			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.i2c_addr = msg[i].addr;
			req.addr = addr;