diff options
author | Simon Glass <sjg@chromium.org> | 2013-06-11 18:14:35 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-26 14:16:41 (GMT) |
commit | 92765f420902fe5341364132c574bff256294268 (patch) | |
tree | 03a9cdec8b3fe71276c02be7a4e0070c93e9e30e | |
parent | bdc7d5cda3510d01153d75d0ceae38466ff865c0 (diff) | |
download | u-boot-92765f420902fe5341364132c574bff256294268.tar.xz |
Fix missing return in do_mem_loop()
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>
-rw-r--r-- | common/cmd_mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 6df00b1..77eafa0 100644 --- 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 |