|
@@ -2098,6 +2098,8 @@ static int ftdi_chars_in_buffer(struct tty_struct *tty)
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
chars = usb_serial_generic_chars_in_buffer(tty);
|
|
chars = usb_serial_generic_chars_in_buffer(tty);
|
|
|
|
+ if (chars)
|
|
|
|
+ return chars;
|
|
|
|
|
|
/* Check hardware buffer */
|
|
/* Check hardware buffer */
|
|
switch (priv->chip_type) {
|
|
switch (priv->chip_type) {
|