projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd7bf8a
)
gpio-ml-ioh: cleanup NULL pointer checking
author
Márton Németh
<nm127@freemail.hu>
Sun, 15 Jan 2012 09:57:43 +0000
(10:57 +0100)
committer
Grant Likely
<grant.likely@secretlab.ca>
Mon, 16 Jan 2012 16:12:24 +0000
(09:12 -0700)
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 <nm127@freemail.hu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-ml-ioh.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-ml-ioh.c
b/drivers/gpio/gpio-ml-ioh.c
index
461958f
..
af6d4f3
100644
(file)
--- a/
drivers/gpio/gpio-ml-ioh.c
+++ b/
drivers/gpio/gpio-ml-ioh.c
@@
-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;