projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943afa2
)
Fix return value of mtest when CFG_ALT_MEMTEST set
author
Guennadi Liakhovetski
<g.liakhovetski@gmx.de>
Wed, 13 Feb 2008 10:19:19 +0000
(11:19 +0100)
committer
Wolfgang Denk
<wd@denx.de>
Thu, 14 Feb 2008 22:37:13 +0000
(23:37 +0100)
Fix a missing return statement from a non-void function.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
common/cmd_mem.c
patch
|
blob
|
history
diff --git
a/common/cmd_mem.c
b/common/cmd_mem.c
index a994211138665dff649b376ec69ef78fcf0deece..5fce773a9b64735b7f4087bf52f47b61b77ffce5 100644
(file)
--- 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;
}