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

Commit 648ad154 authored by Felipe Pena's avatar Felipe Pena Committed by Mauro Carvalho Chehab
Browse files

[media] technisat-usb2: fix typo in variable name



The variable txlen was used instead of rxlen in boundary check.
(copy-paste error)

Signed-off-by: default avatarFelipe Pena <felipensp@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 340f70e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -102,7 +102,7 @@ static int technisat_usb2_i2c_access(struct usb_device *udev,
	if (rxlen > 62) {
	if (rxlen > 62) {
		err("i2c RX buffer can't exceed 62 bytes (dev 0x%02x)",
		err("i2c RX buffer can't exceed 62 bytes (dev 0x%02x)",
				device_addr);
				device_addr);
		txlen = 62;
		rxlen = 62;
	}
	}


	b[0] = I2C_SPEED_100KHZ_BIT;
	b[0] = I2C_SPEED_100KHZ_BIT;