summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2014-07-31 16:31:16 +0200
committerBrian Norris <computersforpeace@gmail.com>2014-08-19 11:53:05 -0700
commit9b6e5172e363b0c35a6be4d3197f3bcdc789292e (patch)
treecde4f98306b63b701a35514c5835293a2dab384c
parent5828c60826e9422169b3711aa58a583242864cc8 (diff)
downloadtalos-obmc-linux-9b6e5172e363b0c35a6be4d3197f3bcdc789292e.tar.gz
talos-obmc-linux-9b6e5172e363b0c35a6be4d3197f3bcdc789292e.zip
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>
-rw-r--r--drivers/mtd/maps/pcmciamtd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index a3cfad392ed6..af747af5eee9 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);
OpenPOWER on IntegriCloud