summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-12 07:24:45 -0600
committerTom Rini <trini@ti.com>2014-06-19 11:18:58 -0400
commit12df2abe3e159d622701611766c085b860329f78 (patch)
treec8e3881b3ea7cddd949552d48fd9c4771e9a74cf /tools
parentba923cab0006838eb726e40207501ddf16eabd80 (diff)
downloadu-boot-imx-12df2abe3e159d622701611766c085b860329f78.zip
u-boot-imx-12df2abe3e159d622701611766c085b860329f78.tar.gz
u-boot-imx-12df2abe3e159d622701611766c085b860329f78.tar.bz2
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/fit_check_sign.c b/tools/fit_check_sign.c
index e1198bc..768be2f 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;