USB: serial: kl5kusb105: simplify line-status handling
authorJohan Hovold <johan@kernel.org>
Tue, 21 Sep 2021 13:30:08 +0000 (15:30 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 22 Sep 2021 07:33:12 +0000 (09:33 +0200)
commit2e0b78dad3b69df12baa925c4e42489deaaf4054
tree627b3cf101e05d166b53c0e637257803c92cc67b
parenta692d0e6066c9377699b88fc0555d719519e6fb0
USB: serial: kl5kusb105: simplify line-status handling

Now that the driver is using usb_control_msg_recv(), the line status
handling can be simplified further by reading directly into the status
variable and doing the endian conversion in place.

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