gpio-pch: cleanup NULL pointer checking
authorMárton Németh <nm127@freemail.hu>
Sun, 15 Jan 2012 10:32:30 +0000 (11:32 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 16 Jan 2012 16:12:24 +0000 (09:12 -0700)
This patch will remove the following sparse warning ("make C=1"):
 * warning: Using plain integer as NULL pointer

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pch.c

index f0603297f829e787129f4bf0c34beb980a17f368..7f008fbc4b96af513dad748aeb9f082e0c8cc312 100644 (file)
@@ -376,7 +376,7 @@ static int __devinit pch_gpio_probe(struct pci_dev *pdev,
        }
 
        chip->base = pci_iomap(pdev, 1, 0);
-       if (chip->base == 0) {
+       if (!chip->base) {
                dev_err(&pdev->dev, "%s : pci_iomap FAILED", __func__);
                ret = -ENOMEM;
                goto err_iomap;