Skip to content

Commit

Permalink
gpio-ml-ioh: cleanup NULL pointer checking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Márton Németh authored and Grant Likely committed Jan 16, 2012
1 parent cd7bf8a commit 2bd1c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-ml-ioh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bd1c85

Please sign in to comment.