serial: pl011: Drop duplicate loop counter
commite73be92d82e6a842eda6adac339963a3560ca0e4
authorLukas Wunner <lukas@wunner.de>
Fri, 24 Nov 2017 23:40:49 +0000 (25 00:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:32:33 +0000 (28 15:32 +0100)
tree3318876c5bb5da40d4b60ad508bceda84b9a48f7
parentf859722a8f3f145b79c4371303f3d3ea7da5c4e0
serial: pl011: Drop duplicate loop counter

pl011_fifo_to_tty() has two counters (max_count and fifotaken) for the
same loop.  One counter should suffice.  This saves one subtraction per
character read from the RX FIFO.

Cc: Mathias Duckeck <m.duckeck@kunbus.de>
Cc: Phil Elwell <phil@raspberrypi.org>
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c