Skip to contentSkip to conversation

scsi: pm8001: pm8001_init: Fix Use plain integer as NULL pointer

PATCH Applied Jinpu Wang 2 participants 2 messages Nov 1, 2019 – Nov 2, 2019 1 message not in the archive SCSI

lore
Share & tools
lore

Jinpu Wang

author Acked-by
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Saurav Girepunje

Replace assignment of 0 to pointer with NULL assignment.

looks good, thanks,

Quoted 20 lines
---
 drivers/scsi/pm8001/pm8001_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/pm8001/pm8001_init.c +1 -2
index 3374f553c617..ad67cdd4d3cf 100644
@@ -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