diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-05-02 19:54:43 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-05-23 10:16:21 -0400 |
commit | 62a9aebc5b8e28073a8609b9af6e8321cc622344 (patch) | |
tree | c9655615b7b5ad419cbdeee8a0c2647995b74521 /drivers | |
parent | 6101167727932a929e37fb8a6eeb68bdbf54d58e (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/sp5100_tco.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 59108e48ada3..ae5e82cb83fa 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -313,7 +313,7 @@ static unsigned char __devinit sp5100_tco_setupdevice(void) | |||
313 | tcobase_phys = val; | 313 | tcobase_phys = val; |
314 | 314 | ||
315 | tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE); | 315 | tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE); |
316 | if (tcobase == 0) { | 316 | if (!tcobase) { |
317 | pr_err("failed to get tcobase address\n"); | 317 | pr_err("failed to get tcobase address\n"); |
318 | goto unreg_mem_region; | 318 | goto unreg_mem_region; |
319 | } | 319 | } |