aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2008-02-13 11:19:19 +0100
committerWolfgang Denk <wd@denx.de>2008-02-14 23:37:13 +0100
commit1f780aa6f17a5d79791d69ec1d2f66d76ac45d8e (patch)
tree3c7f4475b444df36451d533940a9894370bcb623 /common/cmd_mem.c
parent943afa229cf5bf70ef917c7eb6bd0db59a1ba602 (diff)
downloadu-boot-1f780aa6f17a5d79791d69ec1d2f66d76ac45d8e.zip
u-boot-1f780aa6f17a5d79791d69ec1d2f66d76ac45d8e.tar.gz
u-boot-1f780aa6f17a5d79791d69ec1d2f66d76ac45d8e.tar.bz2
Fix return value of mtest when CFG_ALT_MEMTEST set
Fix a missing return statement from a non-void function. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index a994211..5fce773 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -659,6 +659,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
vu_long *addr, *start, *end;
ulong val;
ulong readback;
+ int rcode = 0;
#if defined(CFG_ALT_MEMTEST)
vu_long addr_mask;
@@ -689,7 +690,6 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#else
ulong incr;
ulong pattern;
- int rcode = 0;
#endif
if (argc > 1) {
@@ -954,8 +954,8 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
incr = -incr;
}
- return rcode;
#endif
+ return rcode;
}