From: Martin Kepplinger Date: Thu, 31 Jul 2014 14:31:16 +0000 (+0200) Subject: mtd: use NULL instead of 0 for an address X-Git-Tag: v4.14-rc1~6540^2~38^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b6e5172e363b0c35a6be4d3197f3bcdc789292e;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index a3cfad3..af747af 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/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)) { pr_debug("device removed\n"); - return 0; + return NULL; } offset = to & ~(dev->win_size-1);