[PATCH 12/13] boot: Drop unnecessary data variable
Simon Glass
sjg at chromium.org
Wed Mar 25 17:54:21 CET 2026
This is always the same as 'buf' and is not needed by the caller. Drop
the return of this value from handle_load_op().
Signed-off-by: Simon Glass <sjg at chromium.org>
---
boot/image-fit.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/boot/image-fit.c b/boot/image-fit.c
index 749cbe19ade..34876b66fa0 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2407,7 +2407,6 @@ static int decomp_image(const void *fit, int noffset, const char *prop_name,
* @image_type: Type of the image
* @load_op: Load operation to process
* @bootstage_id: ID of starting bootstage to use for progress updates
- * @datap: Returns buf
* @loadp: Returns the address where the data was loaded
* @sizep: On entry, the size of the image in bytes. Updated if decompressed
* Return: 0 if OK, -ve on error
@@ -2415,7 +2414,7 @@ static int decomp_image(const void *fit, int noffset, const char *prop_name,
static int handle_load_op(const void *fit, int noffset, const char *prop_name,
void *buf, ulong size, enum image_type_t image_type,
enum fit_load_op load_op, int bootstage_id,
- ulong *datap, ulong *loadp, ulong *sizep)
+ ulong *loadp, ulong *sizep)
{
ulong data, load, load_end;
int ret;
@@ -2462,7 +2461,6 @@ static int handle_load_op(const void *fit, int noffset, const char *prop_name,
if (ret)
return ret;
- *datap = data;
*loadp = load;
return 0;
@@ -2480,7 +2478,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
const char *fit_base_uname_config;
const void *fit;
void *buf;
- ulong load, data, len;
+ ulong load, len;
const char *prop_name;
int ret;
@@ -2507,7 +2505,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
return ret;
ret = handle_load_op(fit, noffset, prop_name, buf, len, image_type,
- load_op, bootstage_id, &data, &load, &len);
+ load_op, bootstage_id, &load, &len);
if (ret)
return ret;
--
2.43.0
More information about the U-Boot
mailing list