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>
This commit is contained in:
Simon Glass
2014-06-12 07:24:45 -06:00
committed by Tom Rini
parent ba923cab00
commit 12df2abe3e
4 changed files with 5 additions and 6 deletions

View File

@@ -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;