[PATCH V3 0/2] fw_env: two minor code cleanups

Rafał Miłecki zajec5 at gmail.com
Wed Jan 12 12:47:04 CET 2022


From: Rafał Miłecki <rafal at milecki.pl>

Hi,

I'm a long time OpenWrt developer and just recently I started working
with some devices using U-Boot.

I was trying to understand how environment variables are read in user
space and I had some problems understanding fw_env_open() logic. I
eventually got it but I thought I may help further developers by
simpliifying its code a bit.

I hope you may find those patches useful and review / apply them.

Rafał Miłecki (2):
  fw_env: make flash_io() take buffer as an argument
  fw_env: simplify logic & code paths in the fw_env_open()

 tools/env/fw_env.c | 105 +++++++++++++++++++--------------------------
 1 file changed, 45 insertions(+), 60 deletions(-)

-- 
2.31.1



More information about the U-Boot mailing list