Skip to contentSkip to conversation

gpio-ml-ioh: cleanup NULL pointer checking

PATCH Applied Németh Márton 1 participant 1 message Jan 15, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 gpio-ml-ioh: cleanup NULL pointer checking

From: Márton Németh <[email protected]>

This patch will remove the following sparse warning ("make C=1"):
* warning: Using plain integer as NULL pointer

---
 drivers/gpio/gpio-ml-ioh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpio/gpio-ml-ioh.c +1 -1
index 25da40a..03d6dd5 100644
@@ -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;
Signature · 1 line
1.7.2.5