mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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:
parent
943afa229c
commit
1f780aa6f1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue