fw_env: cleanup flash_write_buf()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | fw_env: use "erasesize" variable in writing looptools/ | +1 | 0 replies | |
| 2/6 | fw_env: allocate buffer of proper size in flash_write_buf()tools/ | +2 | 0 replies | |
| 3/6 | fw_env: add ROUND_UP() helpertools/ | +2 | 0 replies | |
| 4/6 | fw_env: unify calculation of "blockstart" in flash_write_buf()tools/ | +1 | 1 reply | |
| 5/6 | fw_env: move "erasesize" calculation up in a codetools/ | +10 | 0 replies | |
| 6/6 | fw_env: drop unneeded variables from flash_write_buf()tools/ | +6 | 1 reply |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Tom Rini |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | R-b |
| 5/6 | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] fw_env: cleanup flash_write_buf()
From: Rafał Miłecki <[email protected]>
I found flash_write_buf() somehow more difficult to follow than needed. Some code turned out to be inconsistent and some not really needed.
There is a set of 6 patches that should be small enough to make them easy to review. I was wondering if I should squash patches 5 and 6 but ended up with sending two smaller diffs.
Those changes shouldn't really change any behaviour (except for smaller mem alloc). Let me know if there are any issues with this!
Rafał Miłecki (6):
fw_env: use "erasesize" variable in writing loop
fw_env: allocate buffer of proper size in flash_write_buf()
fw_env: add ROUND_UP() helper
fw_env: unify calculation of "blockstart" in flash_write_buf()
fw_env: move "erasesize" calculation up in a code
fw_env: drop unneeded variables from flash_write_buf()
tools/env/fw_env.c | 47 ++++++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 29 deletions(-)
Signature · 1 line
2.51.0