Message ID | 1406817076-1072-1-git-send-email-martink@posteo.de |
---|---|
State | Accepted |
Commit | 9b6e5172e363b0c35a6be4d3197f3bcdc789292e |
Headers | show |
On Thu, Jul 31, 2014 at 04:31:16PM +0200, Martin Kepplinger wrote: > Use NULL instead of 0 when returning an address. This fixes a > sparse warning. > > Signed-off-by: Martin Kepplinger <martink@posteo.de> > --- > Sorry if this is only noise, I stumbled upon it and why not send it. > applies to next-20140731 Queued to l2-mtd.git/next. Brian
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);
Use NULL instead of 0 when returning an address. This fixes a sparse warning. Signed-off-by: Martin Kepplinger <martink@posteo.de> --- Sorry if this is only noise, I stumbled upon it and why not send it. applies to next-20140731 drivers/mtd/maps/pcmciamtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)