Commit c4addcb5 authored by Márton Németh's avatar Márton Németh Committed by Grant Likely

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 53999bf3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment