]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function
authorJosua Mayer <josua@solid-run.com>
Fri, 5 May 2023 08:20:48 +0000 (11:20 +0300)
committerStefan Roese <sr@denx.de>
Mon, 8 May 2023 08:47:11 +0000 (10:47 +0200)
commitf6eff35b8c19dba52519fa0bbd0977787a9dbe8b
tree94dd3c46e0af9d77cbad7d689f9b8515fb506906
parent425d963dac7b5c54046774d836b5153574f7b9ba
cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function

When tlv eeprom does not exist, return error code instead of quietly
making up tlv structure in memory.

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