commit | e411c971992fe4c2cfcc3b9b232779bf1361cd50 | [log] [tgz] |
---|---|---|
author | Josua Mayer <josua@solid-run.com> | Fri May 05 11:20:47 2023 +0300 |
committer | Stefan Roese <sr@denx.de> | Mon May 08 10:47:08 2023 +0200 |
tree | 0212d88f2795256493c5fdf9e0c51c9b4a8f2670 | |
parent | 4d79c98e237e3064df7e2a03d9344a89e01446c7 [diff] |
cmd: tlv_eeprom: remove use of global variable has_been_read has_been_read is only used as an optimization for do_tlv_eeprom. Explicitly use and set inside this function, thus making read_eeprom stateless. Signed-off-by: Josua Mayer <josua@solid-run.com> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>