projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53999bf
)
gpio-pch: cleanup NULL pointer checking
author
Márton Németh
<nm127@freemail.hu>
Sun, 15 Jan 2012 10:32:30 +0000
(11:32 +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-pch.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-pch.c
b/drivers/gpio/gpio-pch.c
index f0603297f829e787129f4bf0c34beb980a17f368..7f008fbc4b96af513dad748aeb9f082e0c8cc312 100644
(file)
--- a/
drivers/gpio/gpio-pch.c
+++ b/
drivers/gpio/gpio-pch.c
@@
-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;