diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c index f6ca2a848e..32d09ca6c8 100644 --- a/util/cbfstool/ifwitool.c +++ b/util/cbfstool/ifwitool.c @@ -548,8 +548,8 @@ static void bpdt_read_header(void *data, struct bpdt_header *h, &h->xor_redundant_block); offset = read_member(data, offset, sizeof(h->ifwi_version), &h->ifwi_version); - offset = read_member(data, offset, sizeof(h->fit_tool_version), - &h->fit_tool_version); + read_member(data, offset, sizeof(h->fit_tool_version), + &h->fit_tool_version); bpdt_validate_header(h, name); bpdt_print_header(h, name);