USB: ftdi_sio: optimise chars_in_buffer
authorJohan Hovold <jhovold@gmail.com>
Mon, 29 Oct 2012 09:56:27 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 20:19:32 +0000 (13:19 -0700)
commit8da636d9b5f3af354458f5b7eadaf51f23017fdc
tree719a1aab1ca30ca0b3430dd6bfb5afcb0a1b4473
parent755b6040fa62eab9d9105359cd5884910eef2df4
USB: ftdi_sio: optimise chars_in_buffer

No need to check hardware buffers when we know that the software
buffers are non-empty.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c