summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2016-11-16 10:52:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-10 08:27:53 +0100
commitd0cd9b439bcc2001e1cea7d0856bb64a2e331fcc (patch)
tree45fe2c213a7a2fc59b1dd8bb378d95e8298c911e
parentc9583d9852f62917f4ad3d6aabebfc7bbef83978 (diff)
downloadbarebox-d0cd9b439bcc2001e1cea7d0856bb64a2e331fcc.tar.gz
scripts/kwbimage: use ALIGN_SUP instead of open-coding it
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--scripts/kwbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c
index 79ca85b..2af96f0 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