Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);