]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pch_phub: fix sparse warning
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 29 Jul 2012 11:23:29 +0000 (17:08 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 17:09:15 +0000 (10:09 -0700)
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>
drivers/misc/pch_phub.c

index 9fbcacd703d502b660f5491a706e06fdd9952f2f..e2c066e510f31a35e6a705ca38270cc33b1acea2 100644 (file)
@@ -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;