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>
This commit is contained in:
Guennadi Liakhovetski 2008-02-13 11:19:19 +01:00 committed by Wolfgang Denk
parent 943afa229c
commit 1f780aa6f1

View file

@ -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;
}