mbox series

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

Message ID 20220112114706.12269-1-zajec5@gmail.com
Headers show
Series fw_env: two minor code cleanups | expand

Message

Rafał Miłecki Jan. 12, 2022, 11:47 a.m. UTC
From: Rafał Miłecki <rafal@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(-)