Commit 9b6e5172 authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Brian Norris

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: default avatarMartin Kepplinger <martink@posteo.de>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 5828c608
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment