diff options
author | Simon Glass | 2019-12-28 10:45:02 -0700 |
---|---|---|
committer | Tom Rini | 2020-01-17 14:02:35 -0500 |
commit | bb872dd930ccc0fb7a91c1b8e34b39ce2e9fed06 (patch) | |
tree | 583e177f483d60b15d54ed1b68240df39ea0d929 /cmd/load.c | |
parent | 9a3b4ceb37989263e9280644912d269386b99bb7 (diff) |
image: Rename load_addr, save_addr, save_size
These global variables are quite short and generic. In fact the same name
is more often used locally for struct members and function arguments.
Add a image_ prefix to make them easier to distinguish.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/load.c')
-rw-r--r-- | cmd/load.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/load.c b/cmd/load.c index 68ff3010b47..bed973ede91 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -109,7 +109,7 @@ static int do_load_serial(cmd_tbl_t *cmdtp, int flag, int argc, rcode = 1; } else { printf("## Start Addr = 0x%08lX\n", addr); - load_addr = addr; + image_load_addr = addr; } #ifdef CONFIG_SYS_LOADS_BAUD_CHANGE @@ -485,12 +485,12 @@ static int do_load_serial_bin(cmd_tbl_t *cmdtp, int flag, int argc, addr = load_serial_bin(offset); if (addr == ~0) { - load_addr = 0; + image_load_addr = 0; printf("## Binary (kermit) download aborted\n"); rcode = 1; } else { printf("## Start Addr = 0x%08lX\n", addr); - load_addr = addr; + image_load_addr = addr; } } if (load_baudrate != current_baudrate) { |