mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
HID: ft260: fix an error message in ft260_i2c_write_read()
The "len" variable is uninitialize.
Fixes: 6a82582d9f
("HID: ft260: add usb hid to i2c host bridge driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
6a82582d9f
commit
2076b7bdc5
@ -512,7 +512,8 @@ static int ft260_i2c_write_read(struct ft260_device *dev, struct i2c_msg *msgs)
|
||||
struct hid_device *hdev = dev->hdev;
|
||||
|
||||
if (msgs[0].len > 2) {
|
||||
hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, len);
|
||||
hid_err(hdev, "%s: unsupported wr len: %d\n", __func__,
|
||||
msgs[0].len);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user