]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sifive: set pointer to NULL rather than 0.
authorColin Ian King <colin.king@canonical.com>
Sat, 25 Sep 2021 22:47:26 +0000 (23:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 12:54:21 +0000 (14:54 +0200)
commit7540ad3c6d15a8b27f71a4ddbf1ad9c4a2379af4
treeb85b89e1bc3150391ed1bbefc6bf6bab27747ace
parent6ad0770395469189c32fbdf2e82cbfe482aaafab
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>
drivers/tty/serial/sifive.c