projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1941246
)
[WATCHDOG] Fix NULL usage in s3c2410_wdt driver.
author
Ben Dooks
<ben-linux@fluff.org>
Sun, 22 Jun 2008 21:36:49 +0000
(22:36 +0100)
committer
Wim Van Sebroeck
<wim@iguana.be>
Tue, 26 Aug 2008 20:18:52 +0000
(20:18 +0000)
Fix comparison of a pointer to 0, instead of using
NULL for a invalid pointer.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/s3c2410_wdt.c
b/drivers/watchdog/s3c2410_wdt.c
index 22715e3be5e7558ecc152aa1fdde49b7798d03b3..27af55f193d2d456a9e1a0ea47836ca40279b586 100644
(file)
--- a/
drivers/watchdog/s3c2410_wdt.c
+++ b/
drivers/watchdog/s3c2410_wdt.c
@@
-374,7
+374,7
@@
static int s3c2410wdt_probe(struct platform_device *pdev)
}
wdt_base = ioremap(res->start, size);
- if (wdt_base ==
0
) {
+ if (wdt_base ==
NULL
) {
dev_err(dev, "failed to ioremap() region\n");
ret = -EINVAL;
goto err_req;