]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
watchdog: sp5100_tco.c: quiet sparse noise about using plain integer was NULL pointer
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 2 May 2012 23:54:43 +0000 (16:54 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 23 May 2012 14:16:21 +0000 (16:16 +0200)
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>
drivers/watchdog/sp5100_tco.c

index 59108e48ada35aed040136d05db41e5df80e09fb..ae5e82cb83fa80bb897aaf4131aee42616add6c1 100644 (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;
        }