summaryrefslogtreecommitdiff
path: root/cmd/ximg.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ximg.c')
-rw-r--r--cmd/ximg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/ximg.c b/cmd/ximg.c
index 8533d0d238..63b200430c 100644
--- a/cmd/ximg.c
+++ b/cmd/ximg.c
@@ -171,11 +171,8 @@ do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
return 1;
}
- if (fit_image_get_comp(fit_hdr, noffset, &comp)) {
- puts("Could not find script subimage "
- "compression type\n");
- return 1;
- }
+ if (fit_image_get_comp(fit_hdr, noffset, &comp))
+ comp = IH_COMP_NONE;
data = (ulong)fit_data;
len = (ulong)fit_len;