diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2020-03-30 11:56:22 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 10:10:00 -0400 |
commit | 02560b13689650cf0d2f5825eaf480629ce9238f (patch) | |
tree | b52072cf7e72c08a35f974df85ba42f4c7b8c958 /tools/fit_image.c | |
parent | e5ad99cc9924e374d9cedbec38b6303cb80d693f (diff) | |
download | u-boot-02560b13689650cf0d2f5825eaf480629ce9238f.tar.gz u-boot-02560b13689650cf0d2f5825eaf480629ce9238f.tar.bz2 u-boot-02560b13689650cf0d2f5825eaf480629ce9238f.zip |
tool: use ALIGN() to align the size
Use the ALIGN() for size align so that the code is more readable.
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>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 4301b5decb..55efe12eeb 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -547,7 +547,7 @@ static int fit_import_data(struct image_tool_params *params, const char *fname) if (fd < 0) return -EIO; fit_size = fdt_totalsize(old_fdt); - data_base = (fit_size + 3) & ~3; + data_base = ALIGN(fit_size, 4); /* Allocate space to hold the new FIT */ size = sbuf.st_size + 16384; |