提交 cfb0fde7 编写于 作者: J Johan Hovold

USB: serial: f81534: drop short control-transfer check

There's no need to check for short control transfers when sending data
so remove the redundant sanity check.
Reviewed-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NJohan Hovold <johan@kernel.org>
上级 18d8fe61
...@@ -235,11 +235,9 @@ static int f81534_set_register(struct usb_serial *serial, u16 reg, u8 data) ...@@ -235,11 +235,9 @@ static int f81534_set_register(struct usb_serial *serial, u16 reg, u8 data)
USB_TYPE_VENDOR | USB_DIR_OUT, USB_TYPE_VENDOR | USB_DIR_OUT,
reg, 0, tmp, sizeof(u8), reg, 0, tmp, sizeof(u8),
F81534_USB_TIMEOUT); F81534_USB_TIMEOUT);
if (status > 0) { if (status == sizeof(u8)) {
status = 0; status = 0;
break; break;
} else if (status == 0) {
status = -EIO;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册