tty: serial: switch mpc52xx_uart_int_{r,t}x_chars() to bool
authorJiri Slaby <jslaby@suse.cz>
Tue, 20 Sep 2022 05:20:46 +0000 (07:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:14:08 +0000 (16:14 +0200)
commit8ca01f8f70d1e54cf033945ac3539f52b7334c34
tree10f9f3f6d01ac29d3202b03b7e8c658cb0b7e197
parent2a4be3a55cd2970aa8c45f6cd1cd9dce09061093
tty: serial: switch mpc52xx_uart_int_{r,t}x_chars() to bool

mpc52xx_uart_int_rx_chars() returns unsigned int.
mpc52xx_uart_int_tx_chars() returns int.

The both results are binary ORed to the "keepgoing" variable. Unify all
three to bool as the only interesting value is whether we should keep
looping (true/false).

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220920052049.20507-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mpc52xx_uart.c