OSDN Git Service

USB: serial: mos7840: drop read-urb check
authorJohan Hovold <johan@kernel.org>
Thu, 7 Nov 2019 13:29:03 +0000 (14:29 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 12 Nov 2019 08:57:26 +0000 (09:57 +0100)
commitf8e8dcaf14d9c2bfb34018cb02e7a40f3d56c8eb
tree3771575e4be1e64fa7fd73dec65cadcc2d4417e4
parent7b2faede671adc0a7edbb5f6b1e228aa8b62f7c0
USB: serial: mos7840: drop read-urb check

Drop read-urb check which is always false from completion the callback.

The driver read-urb pointer is set at every open and is never cleared.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c