Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bd1c85e authored by Márton Németh's avatar Márton Németh Committed by Grant Likely
Browse files

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent cd7bf8a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;