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:
parent
c9583d9852
commit
d0cd9b439b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue