Sfoglia il codice sorgente

mtd: use NULL instead of 0 for an address

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>
Martin Kepplinger 11 anni fa
parent
commit
9b6e5172e3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/mtd/maps/pcmciamtd.c

+ 1 - 1
drivers/mtd/maps/pcmciamtd.c

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