summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2012-01-15 11:32:30 +0100
committerGrant Likely <grant.likely@secretlab.ca>2012-01-16 09:12:24 -0700
commitc4addcb55417a246b4419cbb075a2e4f412a8645 (patch)
tree492f689bca2db1865927f66ae43c0b906ac3be8a /drivers
parent53999bf34d55981328f8ba9def558d3e104d6e36 (diff)
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 <nm127@freemail.hu> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-pch.c2
1 files changed, 1 insertions, 1 deletions
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;