diff options
author | Johan Hovold <johan@kernel.org> | 2021-01-18 12:14:26 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-01-18 14:26:50 +0100 |
commit | cfb0fde7a7fab4509fdb4f7ab72d5fd7157c0aa0 (patch) | |
tree | 2dc6ee6b7113773d85976a8acd0ea6d1ee747fd8 /drivers/usb/serial/f81534.c | |
parent | 18d8fe614fad9e82ad45b6984f8c6cf733d38bc3 (diff) | |
download | linux-cfb0fde7a7fab4509fdb4f7ab72d5fd7157c0aa0.tar.bz2 |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/f81534.c')
-rw-r--r-- | drivers/usb/serial/f81534.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/f81534.c b/drivers/usb/serial/f81534.c index 5661fd03e545..dd7e55e822ef 100644 --- a/drivers/usb/serial/f81534.c +++ b/drivers/usb/serial/f81534.c @@ -235,11 +235,9 @@ static int f81534_set_register(struct usb_serial *serial, u16 reg, u8 data) USB_TYPE_VENDOR | USB_DIR_OUT, reg, 0, tmp, sizeof(u8), F81534_USB_TIMEOUT); - if (status > 0) { + if (status == sizeof(u8)) { status = 0; break; - } else if (status == 0) { - status = -EIO; } } |