Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: use NULL instead of 0 for an address
@ 2014-07-31 14:31 Martin Kepplinger
  2014-08-04 21:16 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Kepplinger @ 2014-07-31 14:31 UTC (permalink / raw)
  To: dwmw2; +Cc: Martin Kepplinger, linux-mtd, linux-kernel

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(-)

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);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: use NULL instead of 0 for an address
  2014-07-31 14:31 [PATCH] mtd: use NULL instead of 0 for an address Martin Kepplinger
@ 2014-08-04 21:16 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-08-04 21:16 UTC (permalink / raw)
  To: Martin Kepplinger; +Cc: linux-mtd, dwmw2, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-04 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 14:31 [PATCH] mtd: use NULL instead of 0 for an address Martin Kepplinger
2014-08-04 21:16 ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox