summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Eichenberger <eichest@gmail.com>2022-01-10 20:48:31 +0300
committerTom Rini <trini@konsulko.com>2022-01-24 18:35:10 +0300
commit5390cafed8858c8f9096131f2c2ddb2698931d2d (patch)
tree97747f7ae28a373f9f9cdde2b785115d07458f11 /tools
parent51d8367d8a8d6edb0c5af9828c20bb7aba5670da (diff)
downloadu-boot-5390cafed8858c8f9096131f2c2ddb2698931d2d.tar.xz
tools/fitimage: remove redundant format check
fit_extract_contents does a fit_check_format even thought it was already checked during imagetool_verify_print_header. Therefore, this check is not necessary. This commit removes the redundancy. Signed-off-by: Stefan Eichenberger <eichest@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/fit_image.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c
index f4f372ba62..62e1796ce5 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -884,11 +884,6 @@ static int fit_extract_contents(void *ptr, struct image_tool_params *params)
/* Indent string is defined in header image.h */
p = IMAGE_INDENT_STRING;
- if (fit_check_format(fit, IMAGE_SIZE_INVAL)) {
- printf("Bad FIT image format\n");
- return -1;
- }
-
/* Find images parent node offset */
images_noffset = fdt_path_offset(fit, FIT_IMAGES_PATH);
if (images_noffset < 0) {