diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-12 17:24:45 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-19 19:18:58 +0400 |
commit | 12df2abe3e159d622701611766c085b860329f78 (patch) | |
tree | c8e3881b3ea7cddd949552d48fd9c4771e9a74cf /common/cmd_fdt.c | |
parent | ba923cab0006838eb726e40207501ddf16eabd80 (diff) | |
download | u-boot-12df2abe3e159d622701611766c085b860329f78.tar.xz |
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 'common/cmd_fdt.c')
-rw-r--r-- | common/cmd_fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 6831af4ded..e86d992838 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -612,7 +612,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) } ret = fit_config_verify(working_fdt, cfg_noffset); - if (ret == 1) + if (ret == 0) return CMD_RET_SUCCESS; else return CMD_RET_FAILURE; |