From: Márton Németh Date: Sun, 15 Jan 2012 10:32:30 +0000 (+0100) Subject: gpio-pch: cleanup NULL pointer checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4addcb55417a246b4419cbb075a2e4f412a8645;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git gpio-pch: 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-pch.c b/drivers/gpio/gpio-pch.c index f0603297f829..7f008fbc4b96 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -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;