]> Git Repo - J-u-boot.git/commit
cmd: tlv_eeprom: remove use of global variable has_been_read
authorJosua Mayer <[email protected]>
Fri, 5 May 2023 08:20:47 +0000 (11:20 +0300)
committerStefan Roese <[email protected]>
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 <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Baruch Siach <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
cmd/tlv_eeprom.c
This page took 0.031984 seconds and 4 git commands to generate.