[WATCHDOG] Fix NULL usage in s3c2410_wdt driver.
authorBen Dooks <ben-linux@fluff.org>
Sun, 22 Jun 2008 21:36:49 +0000 (22:36 +0100)
committerWim 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

index 22715e3be5e7558ecc152aa1fdde49b7798d03b3..27af55f193d2d456a9e1a0ea47836ca40279b586 100644 (file)
@@ -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;