Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 873a69a3 authored by Tilman Schmidt's avatar Tilman Schmidt Committed by David S. Miller
Browse files

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: default avatarTilman Schmidt <tilman@imap.cc>
Acked-by: default avatarKarsten Keil <keil@b1-systems.de>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>, stable@kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3a0a3a6b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -628,7 +628,6 @@ void gigaset_if_receive(struct cardstate *cs,
	if (tty == NULL)
		gig_dbg(DEBUG_IF, "receive on closed device");
	else {
		tty_buffer_request_room(tty, len);
		tty_insert_flip_string(tty, buffer, len);
		tty_flip_buffer_push(tty);
	}