diff options
| author | Pali Rohár <[email protected]> | 2021-10-25 15:13:00 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-11-03 06:45:27 +0100 |
| commit | ed792c2938331a68f4b271a6d4d0250057449608 (patch) | |
| tree | dbfe4522ac67a37a07863b1daf819103bdb37ffd /scripts/basic/Makefile | |
| parent | 8e2e7ca1fe3a822aec31b4672b4615c07afa89c0 (diff) | |
tools: kwboot: Simplify code for aligning image header
Expression (hdrsz % KWBOOT_XM_BLKSZ) is non-zero therefore expression
(KWBOOT_XM_BLKSZ - hdrsz % KWBOOT_XM_BLKSZ) is always less than value
KWBOOT_XM_BLKSZ. So there is no need to add another modulo. Also rename
variable `offset` to `grow` which better describes what is stored in
this variable.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions
