]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: tlv_eeprom: remove use of global variable has_been_read
authorJosua Mayer <josua@solid-run.com>
Fri, 5 May 2023 08:20:47 +0000 (11:20 +0300)
committerStefan Roese <sr@denx.de>
Mon, 8 May 2023 08:47:08 +0000 (10:47 +0200)
commit425d963dac7b5c54046774d836b5153574f7b9ba
tree0212d88f2795256493c5fdf9e0c51c9b4a8f2670
parentdfda0c0140483260ccfc40f5f412238ee0bb90c5
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>
cmd/tlv_eeprom.c