watchdog: sp5100_tco.c: quiet sparse noise about using plain integer was NULL pointer

Pointers should not be compared to plain integers.
Quiets the sparse warning:
warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
H Hartley Sweeten 2012-05-02 16:54:43 -07:00 committed by Wim Van Sebroeck
parent 6101167727
commit 62a9aebc5b
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ static unsigned char __devinit sp5100_tco_setupdevice(void)
tcobase_phys = val;
tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE);
if (tcobase == 0) {
if (!tcobase) {
pr_err("failed to get tcobase address\n");
goto unreg_mem_region;
}