[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <mhng-f84d7cb5-9eb5-40e2-bdc4-9bfdbd67f6d3@palmerdabbelt-glaptop>
Date: Thu, 21 Oct 2021 14:51:29 -0700 (PDT)
From: Palmer Dabbelt <palmer@...belt.com>
To: colin.king@...onical.com
CC: Greg KH <gregkh@...uxfoundation.org>, jirislaby@...nel.org,
Paul Walmsley <paul.walmsley@...ive.com>,
linux-serial@...r.kernel.org, linux-riscv@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] serial: sifive: set pointer to NULL rather than 0.
On Sat, 25 Sep 2021 15:47:26 PDT (-0700), colin.king@...onical.com wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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@...onical.com>
> ---
> drivers/tty/serial/sifive.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c
> index 0ac0371f943b..b79900d0e91a 100644
> --- a/drivers/tty/serial/sifive.c
> +++ b/drivers/tty/serial/sifive.c
> @@ -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)
I'm assuming this was aimed at the serial tree, but LMK if someone was
expecting me to take it.
Reviewed-by: Palmer Dabbelt <palmerdabbelt@...gle.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@...gle.com>
Powered by blists - more mailing lists