diff options
author | Stefan Theil <stefan.theil@mixed-mode.de> | 2019-01-07 10:25:52 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-25 12:12:55 -0500 |
commit | 240e58ee535c21631a76a7bfcd800ea326351e8b (patch) | |
tree | 9361f618c2c11ecf162e078e57b48a51b572767c /cmd | |
parent | 29e1a64c06da729418629ca1df8ed11bb34f71b9 (diff) | |
download | u-boot-240e58ee535c21631a76a7bfcd800ea326351e8b.tar.gz u-boot-240e58ee535c21631a76a7bfcd800ea326351e8b.tar.xz u-boot-240e58ee535c21631a76a7bfcd800ea326351e8b.zip |
cmd: ximg: Invert check for fit image compression
The imgextract command runs a number of checks of
the specified fit. Where it checks for a load address
for compressed images the logic in the expression
is inverted as fit_image_check_comp returns 1 on
success and not 0.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ximg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ximg.c b/cmd/ximg.c index 6880c747f5..8572a67a00 100644 --- a/cmd/ximg.c +++ b/cmd/ximg.c @@ -143,7 +143,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } - if (fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) + if (!fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) && (argc < 4)) { printf("Must specify load address for %s command " "with compressed image\n", |