mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 18:50:54 +07:00
pch_phub: fix sparse warning
sparse warns about using 0 as NULL pointer, drivers/misc/pch_phub.c:702:44: warning: Using plain integer as NULL pointer Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e045907c0a
commit
73ac0e9eaf
@ -699,7 +699,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
|
||||
chip->pch_phub_base_address = pci_iomap(pdev, 1, 0);
|
||||
|
||||
|
||||
if (chip->pch_phub_base_address == 0) {
|
||||
if (chip->pch_phub_base_address == NULL) {
|
||||
dev_err(&pdev->dev, "%s : pci_iomap FAILED", __func__);
|
||||
ret = -ENOMEM;
|
||||
goto err_pci_iomap;
|
||||
|
Loading…
Reference in New Issue
Block a user