提交 2bd1c85e 编写于 作者: M Márton Németh 提交者: Grant Likely

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: NMárton Németh <nm127@freemail.hu>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 cd7bf8a5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册