From d0cd9b439bcc2001e1cea7d0856bb64a2e331fcc Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Wed, 16 Nov 2016 10:52:43 +0100 Subject: scripts/kwbimage: use ALIGN_SUP instead of open-coding it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- scripts/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c index 79ca85b72d..2af96f055c 100644 --- a/scripts/kwbimage.c +++ b/scripts/kwbimage.c @@ -886,7 +886,7 @@ static void *image_create_v1(struct image_cfg_element *image_cfg, } /* payload size must be multiple of 32b */ - payloadsz = 4 * ((s.st_size + 3)/4); + payloadsz = ALIGN_SUP(s.st_size, 4); } /* The payload should be aligned on some reasonable -- cgit v1.2.3