mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
serial: sifive: set pointer to NULL rather than 0.
Clean up the assignment of sifive_serial_console_ports[ssp->port.line], this is a pointer to a struct sifive_serial_port so the assignment should be a NULL rather than a integer 0. Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210925224726.183360-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
63dfaadfac
commit
27e8c8b483
@ -887,7 +887,7 @@ static void __ssp_add_console_port(struct sifive_serial_port *ssp)
|
||||
|
||||
static void __ssp_remove_console_port(struct sifive_serial_port *ssp)
|
||||
{
|
||||
sifive_serial_console_ports[ssp->port.line] = 0;
|
||||
sifive_serial_console_ports[ssp->port.line] = NULL;
|
||||
}
|
||||
|
||||
#define SIFIVE_SERIAL_CONSOLE (&sifive_serial_console)
|
||||
|
Loading…
Reference in New Issue
Block a user