gpio-pch: cleanup NULL pointer checking
Subsystems (2)
PATCH 2/2 gpio-pch: cleanup NULL pointer checking
From: Márton Németh <[email protected]>
This patch will remove the following sparse warning ("make C=1"):
* warning: Using plain integer as NULL pointer
Signed-off-by Márton Németh <[email protected]>
--- drivers/gpio/gpio-pch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpio/gpio-pch.c +1 -1
@@ -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;
Signature · 1 line
1.7.2.5
2012/1/15 Németh Márton <[email protected]>:
Quoted 4 lines
From: Márton Németh <[email protected]>
This patch will remove the following sparse warning ("make C=1"):
* warning: Using plain integer as NULL pointer
Acked-by Linus Walleij <[email protected]>
On this and the other NULL-check patch.
Yours,
Linus Walleij