From: Márton Németh Date: Sun, 15 Jan 2012 09:57:43 +0000 (+0100) Subject: gpio-ml-ioh: cleanup NULL pointer checking X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2bd1c85e855c94da564e151cb54553e6cfc2f04b;p=linux-beck.git gpio-ml-ioh: cleanup NULL pointer checking 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 Signed-off-by: Grant Likely --- diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index 461958fc2264..af6d4f352d01 100644 --- a/drivers/gpio/gpio-ml-ioh.c +++ b/drivers/gpio/gpio-ml-ioh.c @@ -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;