From: Devendra Naga Date: Sun, 29 Jul 2012 11:23:29 +0000 (+0545) Subject: pch_phub: fix sparse warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c index 9fbcacd703d5..e2c066e510f3 100644 --- a/drivers/misc/pch_phub.c +++ b/drivers/misc/pch_phub.c @@ -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;