[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMGffE=Sk3hHq-Xe+PhSQHZJoM+U3D=9revKnPjsJ75P8c2yGw@mail.gmail.com>
Date: Fri, 1 Nov 2019 10:48:31 +0100
From: Jinpu Wang <jinpu.wang@...ud.ionos.com>
To: Saurav Girepunje <saurav.girepunje@...il.com>
Cc: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Linux SCSI Mailinglist <linux-scsi@...r.kernel.org>,
linux-kernel@...r.kernel.org, saurav.girepunje@...mail.com
Subject: Re: [PATCH] scsi: pm8001: pm8001_init: Fix Use plain integer as NULL pointer
On Fri, Oct 25, 2019 at 3:50 PM Saurav Girepunje
<saurav.girepunje@...il.com> wrote:
>
> Replace assignment of 0 to pointer with NULL assignment.
>
> Signed-off-by: Saurav Girepunje <saurav.girepunje@...il.com>
looks good, thanks,
Acked-by: Jack Wang <jinpu.wang@...ud.ionos.com>
> ---
> drivers/scsi/pm8001/pm8001_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
> index 3374f553c617..ad67cdd4d3cf 100644
> --- a/drivers/scsi/pm8001/pm8001_init.c
> +++ b/drivers/scsi/pm8001/pm8001_init.c
> @@ -432,7 +432,7 @@ static int pm8001_ioremap(struct pm8001_hba_info *pm8001_ha)
> } else {
> pm8001_ha->io_mem[logicalBar].membase = 0;
> pm8001_ha->io_mem[logicalBar].memsize = 0;
> - pm8001_ha->io_mem[logicalBar].memvirtaddr = 0;
> + pm8001_ha->io_mem[logicalBar].memvirtaddr = NULL;
> }
> logicalBar++;
> }
> --
> 2.20.1
>
Powered by blists - more mailing lists