1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-27 21:41:16 +02:00

cmd: source: Clean up a few lines

This simplifies a few lines and corrects an error message.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Sean Anderson
2022-12-12 14:12:10 -05:00
committed by Tom Rini
parent 30fb045f2d
commit c4f5738e69

View File

@@ -128,16 +128,14 @@ int image_source_script(ulong addr, const char *fit_uname)
} }
if (!fit_image_check_type (fit_hdr, noffset, IH_TYPE_SCRIPT)) { if (!fit_image_check_type (fit_hdr, noffset, IH_TYPE_SCRIPT)) {
puts ("Not a image image\n"); puts("Not a script image\n");
return 1; return 1;
} }
/* verify integrity */ /* verify integrity */
if (verify) { if (verify && !fit_image_verify(fit_hdr, noffset)) {
if (!fit_image_verify(fit_hdr, noffset)) { puts("Bad Data Hash\n");
puts ("Bad Data Hash\n"); return 1;
return 1;
}
} }
/* get script subimage data address and length */ /* get script subimage data address and length */