Messages in this thread Patch in this message | | | Date | Sun, 22 Jun 2008 22:36:49 +0100 | From | Ben Dooks <> | Subject | [patch 1/3] 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>
Index: linux-2.6.26-rc5-quilt1/drivers/watchdog/s3c2410_wdt.c =================================================================== --- linux-2.6.26-rc5-quilt1.orig/drivers/watchdog/s3c2410_wdt.c 2008-06-07 23:08:39.000000000 +0100 +++ linux-2.6.26-rc5-quilt1/drivers/watchdog/s3c2410_wdt.c 2008-06-07 23:09:54.000000000 +0100 @@ -377,7 +377,7 @@ static int s3c2410wdt_probe(struct platf } 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; -- Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
| |