From: Tilman Schmidt Date: Sun, 14 Mar 2010 12:58:05 +0000 (+0000) Subject: gigaset: prune use of tty_buffer_request_room X-Git-Tag: v2.6.33.2~111 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=49a80f179a3a8ba7c18db26dbfa9a4bca65602a0;p=karo-tx-linux.git 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 Acked-by: Karsten Keil CC: Alan Cox Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- 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, if (tty == NULL) gig_dbg(DEBUG_ANY, "receive on closed device"); else { - tty_buffer_request_room(tty, len); tty_insert_flip_string(tty, buffer, len); tty_flip_buffer_push(tty); }