diff options
author | Alan Cox <alan@linux.intel.com> | 2010-02-17 13:07:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 22:43:22 (GMT) |
commit | 4165fe4ef7305609a96c7f248cefb9c414d0ede5 (patch) | |
tree | 3e239b821a4b5365c7e15996d44fbf4726cd7840 /drivers/char/serial167.c | |
parent | 638b9648ab51c9c549ff5735d3de519ef6199df3 (diff) | |
download | linux-4165fe4ef7305609a96c7f248cefb9c414d0ede5.tar.xz |
tty: Fix up char drivers request_room usage
We can't change them all but quite a few misuse it.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/serial167.c')
-rw-r--r-- | drivers/char/serial167.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index 452370a..986aa60 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c @@ -658,8 +658,7 @@ static irqreturn_t cd2401_rx_interrupt(int irq, void *dev_id) info->mon.char_max = char_count; info->mon.char_last = char_count; #endif - len = tty_buffer_request_room(tty, char_count); - while (len--) { + while (char_count--) { data = base_addr[CyRDR]; tty_insert_flip_char(tty, data, TTY_NORMAL); #ifdef CYCLOM_16Y_HACK |