]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
gpio-ml-ioh: cleanup NULL pointer checking
authorMárton Németh <nm127@freemail.hu>
Sun, 15 Jan 2012 09:57:43 +0000 (10:57 +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-ml-ioh.c

index 461958fc2264e91321a5bb80f7ba9cbed0a1a5bc..af6d4f352d01ef72cf47b4a61d87557b78a32e71 100644 (file)
@@ -428,7 +428,7 @@ static int __devinit ioh_gpio_probe(struct pci_dev *pdev,
        }
 
        base = pci_iomap(pdev, 1, 0);
-       if (base == 0) {
+       if (!base) {
                dev_err(&pdev->dev, "%s : pci_iomap failed", __func__);
                ret = -ENOMEM;
                goto err_iomap;