summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r--util/cbfstool/cbfstool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 04b91e51ce..d26c418612 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -770,8 +770,8 @@ static int cbfs_add_master_header(void)
*/
if (param.topswap_size) {
if (update_master_header_loc_topswap(&image, h_loc,
- header_offset))
- return 1;
+ header_offset))
+ goto done;
}
ret = maybe_update_metadata_hash(&image);