Commit 12df2abe3e159d622701611766c085b860329f78
Committed by
Tom Rini
1 parent
ba923cab00
Exists in
v2017.01-smarct4x
and in
40 other branches
Reverse the meaning of the fit_config_verify() return code
It is more common to have 0 mean OK, and -ve mean error. Change this function to work the same way to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 4 changed files with 5 additions and 6 deletions Side-by-side Diff
common/cmd_fdt.c
common/image-fit.c
... | ... | @@ -1534,7 +1534,7 @@ |
1534 | 1534 | images->fit_uname_cfg = fit_uname_config; |
1535 | 1535 | if (IMAGE_ENABLE_VERIFY && images->verify) { |
1536 | 1536 | puts(" Verifying Hash Integrity ... "); |
1537 | - if (!fit_config_verify(fit, cfg_noffset)) { | |
1537 | + if (fit_config_verify(fit, cfg_noffset)) { | |
1538 | 1538 | puts("Bad Data Hash\n"); |
1539 | 1539 | bootstage_error(bootstage_id + |
1540 | 1540 | BOOTSTAGE_SUB_HASH); |
common/image-sig.c