aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial.h
diff options
context:
space:
mode:
authorGabriel Somlo <gsomlo@gmail.com>2022-11-23 08:04:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-19 14:59:40 +0100
commita774aa4580d4339a37e4810f303b6a39ddc745ea (patch)
tree4f537f2ae3e27ab397e86732f211b64c3a86e940 /include/linux/serial.h
parentserial: liteuart: simplify passing of uart_insert_char() flag (diff)
downloadlinux-rng-a774aa4580d4339a37e4810f303b6a39ddc745ea.tar.xz
linux-rng-a774aa4580d4339a37e4810f303b6a39ddc745ea.zip
serial: liteuart: clean up rx loop variables
The `status` variable will always be `1` when passed into the call to `uart_insert_char()`, so it can be eliminated altogether. Use `u8` as the type for `ch`, as it matches the return type of the `litex_read8()` call which produces its value. Signed-off-by: Gabriel Somlo <gsomlo@gmail.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20221123130500.1030189-10-gsomlo@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial.h')
0 files changed, 0 insertions, 0 deletions