diff options
author | Tilman Schmidt <tilman@imap.cc> | 2010-03-14 08:58:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-15 19:00:49 -0400 |
commit | 873a69a358a6b393fd8d9d92e193ec8895cac4d7 (patch) | |
tree | 985836029ec83bdaaf1a990955c7216180cf4f00 /drivers/isdn/gigaset | |
parent | 3a0a3a6b92edf181f849ebd8417122392ba73a96 (diff) |
gigaset: prune use of tty_buffer_request_room
Calling tty_buffer_request_room() before tty_insert_flip_string()
is unnecessary, costs CPU and for big buffers can mess up the
multi-page allocation avoidance.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Acked-by: Karsten Keil <keil@b1-systems.de>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>, stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset')
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index a1bcbc21ff71..f0dc6c9cc283 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -628,7 +628,6 @@ void gigaset_if_receive(struct cardstate *cs, | |||
628 | if (tty == NULL) | 628 | if (tty == NULL) |
629 | gig_dbg(DEBUG_IF, "receive on closed device"); | 629 | gig_dbg(DEBUG_IF, "receive on closed device"); |
630 | else { | 630 | else { |
631 | tty_buffer_request_room(tty, len); | ||
632 | tty_insert_flip_string(tty, buffer, len); | 631 | tty_insert_flip_string(tty, buffer, len); |
633 | tty_flip_buffer_push(tty); | 632 | tty_flip_buffer_push(tty); |
634 | } | 633 | } |