summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-29 15:23:29 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 21:09:15 +0400
commit73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5 (patch)
tree2d9cb1627ed92f8e349322f5c00ca7a7a18a5f75 /drivers/misc
parente045907c0a08d09cbc992cd00f788ef0dd83889d (diff)
downloadlinux-73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5.tar.xz
pch_phub: fix sparse warning
sparse warns about using 0 as NULL pointer, drivers/misc/pch_phub.c:702:44: warning: Using plain integer as NULL pointer Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/pch_phub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c
index 9fbcacd703d5..e2c066e510f3 100644
--- a/drivers/misc/pch_phub.c
+++ b/drivers/misc/pch_phub.c
@@ -699,7 +699,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
chip->pch_phub_base_address = pci_iomap(pdev, 1, 0);
- if (chip->pch_phub_base_address == 0) {
+ if (chip->pch_phub_base_address == NULL) {
dev_err(&pdev->dev, "%s : pci_iomap FAILED", __func__);
ret = -ENOMEM;
goto err_pci_iomap;