mbox series

[0/2] fw_env: two minor code cleanups

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

Message

Rafał Miłecki Jan. 10, 2022, 8:19 p.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 | 104 +++++++++++++++++++--------------------------
 1 file changed, 44 insertions(+), 60 deletions(-)