From: Ben Dooks Date: Sun, 22 Jun 2008 21:36:49 +0000 (+0100) Subject: [WATCHDOG] Fix NULL usage in s3c2410_wdt driver. X-Git-Tag: v2.6.27-rc5~10^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b4253f8fc1293cdbfb6a474394e1a66febb70e3d;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 22715e3be5e..27af55f193d 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) } 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;