Skip to content
Snippets Groups Projects
Commit 2076b7bd authored by Dan Carpenter's avatar Dan Carpenter Committed by Jiri Kosina
Browse files

HID: ft260: fix an error message in ft260_i2c_write_read()


The "len" variable is uninitialize.

Fixes: 6a82582d ("HID: ft260: add usb hid to i2c host bridge driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 6a82582d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment