diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-12 07:24:45 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-19 11:18:58 -0400 |
commit | 12df2abe3e159d622701611766c085b860329f78 (patch) | |
tree | c8e3881b3ea7cddd949552d48fd9c4771e9a74cf /tools | |
parent | ba923cab0006838eb726e40207501ddf16eabd80 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fit_check_sign.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/fit_check_sign.c b/tools/fit_check_sign.c index e1198bca449..768be2f484a 100644 --- a/tools/fit_check_sign.c +++ b/tools/fit_check_sign.c @@ -80,8 +80,7 @@ int main(int argc, char **argv) image_set_host_blob(key_blob); ret = fit_check_sign(fit_blob, key_blob); - - if (ret) + if (!ret) ret = EXIT_SUCCESS; else ret = EXIT_FAILURE; |