Skip to content

Commit

Permalink
watchdog: sp5100_tco.c: quiet sparse noise about using plain integer …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
H Hartley Sweeten authored and Wim Van Sebroeck committed May 23, 2012
1 parent 6101167 commit 62a9aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/sp5100_tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 62a9aeb

Please sign in to comment.