tty: fix chars_in_buffers

This function does not have an error return and returning an error is
instead interpreted as having a lot of pending bytes.

Reported by Jeff Harris who provided a list of some of the remaining
offenders.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alan Cox
2009-07-20 16:05:27 +01:00
کامیت شده توسط Linus Torvalds
والد 254702568d
کامیت 23198fda71
7فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده

مشاهده پرونده

@@ -552,7 +552,7 @@ static int hvc_chars_in_buffer(struct tty_struct *tty)
struct hvc_struct *hp = tty->driver_data;
if (!hp)
return -1;
return 0;
return hp->n_outbuf;
}