]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix missing return in do_mem_loop()
authorSimon Glass <sjg@chromium.org>
Tue, 11 Jun 2013 18:14:35 +0000 (11:14 -0700)
committerTom 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

index 6df00b15d3f1823a3df9be934efea0c79326f89a..77eafa0b8920409259acb5fbde8225a575b19af0 100644 (file)
@@ -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