mtd: use NULL instead of 0 for an address
authorMartin Kepplinger <martink@posteo.de>
Thu, 31 Jul 2014 14:31:16 +0000 (16:31 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:05 +0000 (11:53 -0700)
Use NULL instead of 0 when returning an address. This fixes a
sparse warning.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/pcmciamtd.c

index a3cfad392ed653c1543a5318ddfc40f007b72233..af747af5eee9f9917aa503393e14ddc422a4a531 100644 (file)
@@ -89,7 +89,7 @@ static caddr_t remap_window(struct map_info *map, unsigned long to)
 
        if (!pcmcia_dev_present(dev->p_dev)) {
                pr_debug("device removed\n");
-               return 0;
+               return NULL;
        }
 
        offset = to & ~(dev->win_size-1);