diff options
author | Tilman Schmidt <tilman@imap.cc> | 2010-03-14 08:58:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-01 19:01:27 -0400 |
commit | 49a80f179a3a8ba7c18db26dbfa9a4bca65602a0 (patch) | |
tree | e0030957e1cb1900dd85f7bfda97f3ff9e1f17b4 | |
parent | cfbb7c7fb13394c0b501939f721ffa83c604f647 (diff) |
gigaset: prune use of tty_buffer_request_room
commit 873a69a358a6b393fd8d9d92e193ec8895cac4d7 upstream.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-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 d2260b0055fc..07bb299da739 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -632,7 +632,6 @@ void gigaset_if_receive(struct cardstate *cs, | |||
632 | if (tty == NULL) | 632 | if (tty == NULL) |
633 | gig_dbg(DEBUG_ANY, "receive on closed device"); | 633 | gig_dbg(DEBUG_ANY, "receive on closed device"); |
634 | else { | 634 | else { |
635 | tty_buffer_request_room(tty, len); | ||
636 | tty_insert_flip_string(tty, buffer, len); | 635 | tty_insert_flip_string(tty, buffer, len); |
637 | tty_flip_buffer_push(tty); | 636 | tty_flip_buffer_push(tty); |
638 | } | 637 | } |