[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>
This commit is contained in:
Ben Dooks 2008-06-22 22:36:49 +01:00 committed by Wim Van Sebroeck
parent 1941246dd9
commit b4253f8fc1
1 changed files with 1 additions and 1 deletions

View 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;