tools: imx8mimage: remove redundant code
authorKever Yang <kever.yang@rock-chips.com>
Mon, 30 Mar 2020 03:56:21 +0000 (11:56 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:10:00 +0000 (10:10 -0400)
The align for fit_size has been done twice, remove the first one for it
does not make any sense.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/imx8mimage.c

index 7defb13962f87680fd78f01010328dc0f180d803..bc4ee793cb9758040c866636f5339f9dcfa65b68 100644 (file)
@@ -341,7 +341,6 @@ static int generate_ivt_for_fit(int fd, int fit_offset, uint32_t ep,
        }
 
        fit_size = fdt_totalsize(&image_header);
-       fit_size = (fit_size + 3) & ~3;
 
        fit_size = ALIGN(fit_size, ALIGN_SIZE);