[PATCH 13/13] boot: Tidy local variables in fit_image_load()

Simon Glass sjg at chromium.org
Wed Mar 25 17:54:22 CET 2026


Arrange these so that they look a little nicer.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 boot/image-fit.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/boot/image-fit.c b/boot/image-fit.c
index 34876b66fa0..fe53b3a278b 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2472,15 +2472,14 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
 		   enum fit_load_op load_op, ulong *datap, ulong *lenp)
 {
 	int image_type = image_ph_type(ph_type);
-	int noffset;
-	const char *fit_uname;
-	const char *fit_uname_config;
 	const char *fit_base_uname_config;
+	const char *fit_uname_config;
+	const char *fit_uname;
+	const char *prop_name;
+	int noffset, ret;
 	const void *fit;
-	void *buf;
 	ulong load, len;
-	const char *prop_name;
-	int ret;
+	void *buf;
 
 	fit = map_sysmem(addr, 0);
 	prop_name = fit_get_image_type_property(ph_type);
-- 
2.43.0



More information about the U-Boot mailing list