diff options
author | 2017-11-25 00:40:49 +0100 | |
---|---|---|
committer | 2017-11-28 15:32:33 +0100 | |
commit | e73be92d82e6a842eda6adac339963a3560ca0e4 (patch) | |
tree | 3318876c5bb5da40d4b60ad508bceda84b9a48f7 /drivers/tty/moxa.c | |
parent | tty: serial: meson: fix typo in the "stop bit" register definition (diff) | |
download | linux-dev-e73be92d82e6a842eda6adac339963a3560ca0e4.tar.xz linux-dev-e73be92d82e6a842eda6adac339963a3560ca0e4.zip |
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>
Diffstat (limited to 'drivers/tty/moxa.c')
0 files changed, 0 insertions, 0 deletions