projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5828c60
)
mtd: use NULL instead of 0 for an address
author
Martin Kepplinger
<martink@posteo.de>
Thu, 31 Jul 2014 14:31:16 +0000
(16:31 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:05 +0000
(11:53 -0700)
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>
drivers/mtd/maps/pcmciamtd.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/pcmciamtd.c
b/drivers/mtd/maps/pcmciamtd.c
index a3cfad392ed653c1543a5318ddfc40f007b72233..af747af5eee9f9917aa503393e14ddc422a4a531 100644
(file)
--- 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);