From: Francois Berder Date: Sat, 31 Jan 2026 11:29:01 +0000 (+0100) Subject: board: ge: common: vpd: Fix read_i2c_vpd return value X-Git-Tag: v2026.04-rc2~11^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944e577827478e0ec65bfe1593404df4b9cb1cf4;p=thirdparty%2Fu-boot.git board: ge: common: vpd: Fix read_i2c_vpd return value If i2c_eeprom_size fails, the error value is stored in variable size and not ret. Also, this commit fixes printing the error value. Signed-off-by: Francois Berder --- diff --git a/board/ge/common/vpd_reader.c b/board/ge/common/vpd_reader.c index c28d2c03cfe..2422db38013 100644 --- a/board/ge/common/vpd_reader.c +++ b/board/ge/common/vpd_reader.c @@ -215,8 +215,8 @@ int read_i2c_vpd(struct vpd_cache *cache, size = i2c_eeprom_size(dev); if (size < 0) { - printf("Unable to get size of eeprom: %d\n", ret); - return ret; + printf("Unable to get size of eeprom: %d\n", size); + return size; } data = malloc(size);