From patchwork Thu Mar 26 10:09:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 244313 List-Id: U-Boot discussion From: kever.yang at rock-chips.com (Kever Yang) Date: Thu, 26 Mar 2020 18:09:13 +0800 Subject: [PATCH v3 5/8] tools: imx8mimage: remove redundant code In-Reply-To: <20200326100916.22532-1-kever.yang@rock-chips.com> References: <20200326100916.22532-1-kever.yang@rock-chips.com> Message-ID: <20200326100916.22532-5-kever.yang@rock-chips.com> 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 Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None tools/imx8mimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c index 7defb13962..bc4ee793cb 100644 --- a/tools/imx8mimage.c +++ b/tools/imx8mimage.c @@ -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);