projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc7d5c
)
Fix missing return in do_mem_loop()
author
Simon Glass
<sjg@chromium.org>
Tue, 11 Jun 2013 18:14:35 +0000
(11:14 -0700)
committer
Tom Rini
<trini@ti.com>
Wed, 26 Jun 2013 14:16:41 +0000
(10:16 -0400)
For some reason this does not normally cause a compiler warning, but the code
seems to be incorrect. Add the missing return.
Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_mem.c
patch
|
blob
|
history
diff --git
a/common/cmd_mem.c
b/common/cmd_mem.c
index 6df00b15d3f1823a3df9be934efea0c79326f89a..77eafa0b8920409259acb5fbde8225a575b19af0 100644
(file)
--- a/
common/cmd_mem.c
+++ b/
common/cmd_mem.c
@@
-551,6
+551,8
@@
static int do_mem_loop(cmd_tbl_t *cmdtp, int flag, int argc,
*cp++;
}
unmap_sysmem(buf);
+
+ return 0;
}
#ifdef CONFIG_LOOPW