diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-06-22 17:36:49 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2008-08-26 16:18:52 -0400 |
commit | b4253f8fc1293cdbfb6a474394e1a66febb70e3d (patch) | |
tree | 3076a569735d13a031edb0fd049c1f1ab95502ef /drivers/watchdog/s3c2410_wdt.c | |
parent | 1941246dd98089dd637f44d3bd4f6cc1c61aa9e4 (diff) |
[WATCHDOG] Fix NULL usage in s3c2410_wdt driver.
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>
Diffstat (limited to 'drivers/watchdog/s3c2410_wdt.c')
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 22715e3be5e7..27af55f193d2 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -374,7 +374,7 @@ static int s3c2410wdt_probe(struct platform_device *pdev) | |||
374 | } | 374 | } |
375 | 375 | ||
376 | wdt_base = ioremap(res->start, size); | 376 | wdt_base = ioremap(res->start, size); |
377 | if (wdt_base == 0) { | 377 | if (wdt_base == NULL) { |
378 | dev_err(dev, "failed to ioremap() region\n"); | 378 | dev_err(dev, "failed to ioremap() region\n"); |
379 | ret = -EINVAL; | 379 | ret = -EINVAL; |
380 | goto err_req; | 380 | goto err_req; |