aboutsummaryrefslogtreecommitdiff
path: root/common/spl/spl_net.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:02 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 14:02:35 -0500
commitbb872dd930ccc0fb7a91c1b8e34b39ce2e9fed06 (patch)
tree583e177f483d60b15d54ed1b68240df39ea0d929 /common/spl/spl_net.c
parent9a3b4ceb37989263e9280644912d269386b99bb7 (diff)
downloadu-boot-bb872dd930ccc0fb7a91c1b8e34b39ce2e9fed06.zip
u-boot-bb872dd930ccc0fb7a91c1b8e34b39ce2e9fed06.tar.gz
u-boot-bb872dd930ccc0fb7a91c1b8e34b39ce2e9fed06.tar.bz2
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 'common/spl/spl_net.c')
-rw-r--r--common/spl/spl_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c
index 8033032..30c050c 100644
--- a/common/spl/spl_net.c
+++ b/common/spl/spl_net.c
@@ -19,14 +19,14 @@ static ulong spl_net_load_read(struct spl_load_info *load, ulong sector,
{
debug("%s: sector %lx, count %lx, buf %lx\n",
__func__, sector, count, (ulong)buf);
- memcpy(buf, (void *)(load_addr + sector), count);
+ memcpy(buf, (void *)(image_load_addr + sector), count);
return count;
}
static int spl_net_load_image(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev)
{
- struct image_header *header = (struct image_header *)load_addr;
+ struct image_header *header = (struct image_header *)image_load_addr;
int rv;
env_init();