scsi: pm8001: pm8001_init: Fix Use plain integer as NULL pointer
A message that is not in the archive (sent off-list or not yet received): 20191025135010.GA6191@saurav
Jinpu Wang
Acked-byQuoted 4 lines · Saurav Girepunje
Replace assignment of 0 to pointer with NULL assignment.
Signed-off-by Saurav Girepunje <[email protected]>
looks good, thanks,
Acked-by Jack Wang <[email protected]>
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@@ -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
Martin K. Petersen
AppliedSaurav,
Quoted 1 line
Replace assignment of 0 to pointer with NULL assignment.
Applied to 5.5/scsi-queue, thanks.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering