USB: serial: ir-usb: simplify endpoint check
authorJohan Hovold <johan@kernel.org>
Wed, 22 Jan 2020 10:15:30 +0000 (11:15 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 23 Jan 2020 08:11:36 +0000 (09:11 +0100)
commita1c91c1036397f2f7074aa4f5df8a2412e94ab97
tree9890ab7d9524e32388a20203e5846ec30dd9d420
parente7542bc382f8ca2eae25adaa444044513e474925
USB: serial: ir-usb: simplify endpoint check

Simplify the endpoint sanity check by letting core verify that the
required endpoints are present.

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