mirror of https://gitee.com/openkylin/linux.git
scsi: pm8001: Fix Use plain integer as NULL pointer
Replace assignment of 0 to pointer with NULL assignment. Link: https://lore.kernel.org/r/20191025135010.GA6191@saurav Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6eb045e092
commit
62fb8b34be
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue