From: Simon Glass Date: Tue, 11 Jun 2013 18:14:35 +0000 (-0700) Subject: Fix missing return in do_mem_loop() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=92765f420902fe5341364132c574bff256294268;p=u-boot.git 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 --- diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 6df00b15d3..77eafa0b89 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