projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
buildman: Rename the main module
[oweals/u-boot.git]
/
tools
/
socfpgaimage.c
diff --git
a/tools/socfpgaimage.c
b/tools/socfpgaimage.c
index 8fa098338b24a20924c2af6206cce1a26169ff7f..6dfd64e31dd5487eea58d8077f42ee38baa363e8 100644
(file)
--- a/
tools/socfpgaimage.c
+++ b/
tools/socfpgaimage.c
@@
-203,7
+203,7
@@
static int sfp_sign_buffer(uint8_t *buf, uint8_t ver, uint8_t flags,
uint32_t calc_crc;
/* Align the length up */
- len =
(len + 3) & ~3
;
+ len =
ALIGN(len, 4)
;
/* Build header, adding 4 bytes to length to hold the CRC32. */
sfp_build_header(buf + HEADER_OFFSET, ver, flags, len + 4);