diff options
author | Márton Németh <nm127@freemail.hu> | 2012-01-15 10:57:43 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-01-16 17:12:24 +0100 |
commit | 2bd1c85e855c94da564e151cb54553e6cfc2f04b (patch) | |
tree | 4bc8f753fdbedac92b14be7bff97705045537517 /drivers/gpio/gpio-ml-ioh.c | |
parent | gpio-pch: cleanup __iomem annotation usage (diff) | |
download | linux-2bd1c85e855c94da564e151cb54553e6cfc2f04b.tar.xz linux-2bd1c85e855c94da564e151cb54553e6cfc2f04b.zip |
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 <nm127@freemail.hu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-ml-ioh.c')
-rw-r--r-- | drivers/gpio/gpio-ml-ioh.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |