mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
[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: Felipe Pena <felipensp@gmail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
340f70e911
commit
648ad15464
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue