projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1c449
)
Fix compiler warning in cmd_custom.c/do_default_env()
author
Piotr Dymacz
<pepe2k@gmail.com>
Fri, 7 Jul 2017 18:24:39 +0000
(20:24 +0200)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Fri, 7 Jul 2017 18:24:39 +0000
(20:24 +0200)
u-boot/common/cmd_custom.c
patch
|
blob
|
history
diff --git
a/u-boot/common/cmd_custom.c
b/u-boot/common/cmd_custom.c
index d74f0f4f4aabf6652d5120c21b86891965ec1e7e..ee4afdde5ea3b552ed6c6895284f7da5665e322a 100644
(file)
--- a/
u-boot/common/cmd_custom.c
+++ b/
u-boot/common/cmd_custom.c
@@
-185,10
+185,11
@@
U_BOOT_CMD(startsc, 1, 0, do_start_sc, "start serial console\n", NULL);
* Erase environment sector
*/
int do_default_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){
- int
rc,
rcode = 0;
+ int rcode = 0;
int len;
ulong end_addr, flash_sect_addr;
#if defined(CFG_ENV_SECT_SIZE) && (CFG_ENV_SECT_SIZE > CFG_ENV_SIZE)
+ int rc;
ulong flash_offset;
unsigned char env_buffer[CFG_ENV_SECT_SIZE];
#endif