mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
serial: altera_jtaguart: switch status to u32
'status' is assigned a result from readl(). There is no need for the variable to be 'unsigned long'. readl() returns 32bit values. Provided, this is a Nios II driver (32-bit), there is no change in semantics. This only makes the type explicit. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Cc: Tobias Klauser <tklauser@distanz.ch> Link: https://lore.kernel.org/r/20230731080244.2698-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0e4a23ce7c
commit
3e6e212f61
@ -110,7 +110,7 @@ static void altera_jtaguart_set_termios(struct uart_port *port,
|
||||
|
||||
static void altera_jtaguart_rx_chars(struct uart_port *port)
|
||||
{
|
||||
unsigned long status;
|
||||
u32 status;
|
||||
u8 ch;
|
||||
|
||||
while ((status = readl(port->membase + ALTERA_JTAGUART_DATA_REG)) &
|
||||
|
Loading…
Reference in New Issue
Block a user