summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:02 -0700
committerJagan Teki <jagan@amarulasolutions.com>2020-01-24 23:06:49 +0530
commite7f0ec09a04d208b9cdfb095bacf5394d90f19f3 (patch)
tree31cfceb95976941c377a7322be8575153c63aa50 /common/spl
parent657afb14a0a96bd00177652d5510b3d5fb0327d5 (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 'common/spl')
-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 803303249c..30c050c0b3 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();