[PATCH] cmd: tlv_eeprom

sven.auhagen at voleatech.de sven.auhagen at voleatech.de
Sun Sep 12 09:25:44 CEST 2021


From: Sven Auhagen <Sven.Auhagen at voleatech.de>

The function show_eeprom is missing int i if debug is enabled.

Signed-off-by: Sven Auhagen <sven.auhagen at voleatech.de>
---
 cmd/tlv_eeprom.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c
index 745565f89c..520e5dc738 100644
--- a/cmd/tlv_eeprom.c
+++ b/cmd/tlv_eeprom.c
@@ -169,6 +169,9 @@ static void show_eeprom(u8 *eeprom)
 {
 	int tlv_end;
 	int curr_tlv;
+#ifdef DEBUG
+	int i;
+#endif
 	struct tlvinfo_header *eeprom_hdr = to_header(eeprom);
 	struct tlvinfo_tlv    *eeprom_tlv;
 
-- 
2.30.1 (Apple Git-130)



More information about the U-Boot mailing list