Commit 9713883b authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Mauro Carvalho Chehab

[media] cx231xx: drop condition with no effect

The if and the else code are identical - so the condition has no effect
on the effective code.
This patch removes the condition and the duplicated code.
Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent f704eab5
......@@ -176,16 +176,9 @@ int cx231xx_send_usb_command(struct cx231xx_i2c *i2c_bus,
saddr_len = req_data->saddr_len;
/* Set wValue */
if (saddr_len == 1) /* need check saddr_len == 0 */
ven_req.wValue =
req_data->
dev_addr << 9 | _i2c_period << 4 | saddr_len << 2 |
_i2c_nostop << 1 | I2C_SYNC | _i2c_reserve << 6;
else
ven_req.wValue =
req_data->
dev_addr << 9 | _i2c_period << 4 | saddr_len << 2 |
_i2c_nostop << 1 | I2C_SYNC | _i2c_reserve << 6;
ven_req.wValue = (req_data->dev_addr << 9 | _i2c_period << 4 |
saddr_len << 2 | _i2c_nostop << 1 | I2C_SYNC |
_i2c_reserve << 6);
/* set channel number */
if (req_data->direction & I2C_M_RD) {
......
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