diff options
author | Devendra Naga <develkernel412222@gmail.com> | 2012-07-29 13:23:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 19:09:15 +0200 |
commit | 73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5 (patch) | |
tree | 2d9cb1627ed92f8e349322f5c00ca7a7a18a5f75 /drivers/misc/pch_phub.c | |
parent | drivers/char/tlclk.c: fix error return code (diff) | |
download | linux-73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5.tar.xz linux-73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5.zip |
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/pch_phub.c')
-rw-r--r-- | drivers/misc/pch_phub.c | 2 |
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; |