serial: pch: remove xmit circ_buf size double check
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 08:08:06 +0000 (10:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:42:46 +0000 (22:42 +0200)
commit862526523e71a96e11ae48e081c424fdb1b50011
tree8150f9b63625cedcb186d7cfd8ba5ad683d0752d
parent9bc995f51d7828bec9b7432f0034b6e31cefb851
serial: pch: remove xmit circ_buf size double check

One is in handle_tx() (as "min(xmit->head - xmit->tail, fifo_size))",
another one in pop_tx() (as uart_circ_empty(xmit)). So keep only the
latter.

This makes the code simpler and size variable is not needed now.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220503080808.28332-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c