]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: mos7840: drop redundant urb context check
authorJohan Hovold <johan@kernel.org>
Thu, 7 Nov 2019 13:28:58 +0000 (14:28 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 12 Nov 2019 08:56:58 +0000 (09:56 +0100)
commit06669e2b8a62ad0f64c8eeafcf6fc1298701f2d8
tree009ea10c3aadc9ada97270d9353f46540289b645
parentadb45ce09e79419a9a70a7f217652bc4a297b4ca
USB: serial: mos7840: drop redundant urb context check

The bulk-in URB context is set to the driver-data struct at open and is
never cleared so drop the redundant check in the completion callback.

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