serial: pch_uart: CIRC_CNT_TO_END() is enough
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 23 Aug 2022 14:18:39 +0000 (17:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:23:05 +0000 (14:23 +0200)
commit1a9a59104646417ef2d71a7dcfc5243672c9d8e6
tree0e8e40212f8e6be51c7328abdf144871b0757043
parent575ca2cb89ea1dafc4005a208e77e7cd3f3edb40
serial: pch_uart: CIRC_CNT_TO_END() is enough

Testing also CIRC_CNT() with CIRC_CNT_TO_END() is unnecessary because
to latter alone covers all necessary cases.

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220823141839.165244-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c