]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: mos7840: clean up endpoint sanity check
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:47 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:12 +0000 (11:00 +0200)
commit95254020235aa0c0f12bfb7d9b4cd18730dfc499
tree46e5f4b1123fb4a988e903ec39de50082effcbc9
parent6a1eaf19f525ed9e4fa09ed1f05c6502a90b4ccb
USB: serial: mos7840: clean up endpoint sanity check

Clean up the endpoint sanity check by letting core verify the single
interrupt endpoint, and verifying the bulk endpoints in calc_num_ports
after having determined the number of ports.

Note that the static type num_ports field was neither correct or used
(since calc_num_ports never returns zero).

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c