9
0
Fork 0

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>
This commit is contained in:
Uwe Kleine-König 2016-11-16 10:52:43 +01:00 committed by Sascha Hauer
parent c9583d9852
commit d0cd9b439b
1 changed files with 1 additions and 1 deletions

View File

@ -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