Take advantage of the environment being block aligned block alignment is enforced since 183923d3e4
Andreas Fenkart (6): tools/env: factor out environment_end function tools/env: pass bad block offset by value tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf tools/env: flash_write_buf: enforce offset to be start of environment tools/env: flash_write_buf: remove block alignment calculations tools/env: flash_read_buf: enforce offset to be start of environment tools/env/fw_env.c | 121 ++++++++++++++++++++--------------------------------- 1 file changed, 45 insertions(+), 76 deletions(-) -- 2.8.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot