serial: sh-sci: CIRC_CNT_TO_END() is enough
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 23 Aug 2022 14:18:37 +0000 (17:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:23:05 +0000 (14:23 +0200)
commita54dc4b38186e63c30db68df42487464663ae5d0
treec7651525d58e047678716653a88d067b9144eb67
parenta8c11c1520347be74b02312d10ef686b01b525f1
serial: sh-sci: 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-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c