]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usb-skeleton: drop redundant in-urb check
authorJohan Hovold <johan@kernel.org>
Wed, 9 Oct 2019 17:09:44 +0000 (19:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 10:41:19 +0000 (12:41 +0200)
commit71b8022794c8057b9021efad356338088381b71c
tree845fe2bd67dffde52c350e6fe81c43520cf193a6
parent6c4f55574d8f9467cbd5b16489f0df6fab0eaaa6
USB: usb-skeleton: drop redundant in-urb check

The driver bails out at probe if we can't find a bulk-in endpoint or
if we fail to allocate the URB, so drop the check in read().

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191009170944.30057-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usb-skeleton.c