Skip to content

Commit 8958193

Browse files
committed
fix for uninitialized variable
1 parent 42bfa87 commit 8958193

File tree

1 file changed

+1
-2
lines changed
  • patch/u-boot/v2026.01/board_helios64/board

1 file changed

+1
-2
lines changed

patch/u-boot/v2026.01/board_helios64/board/sys_otp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ void set_board_info(void)
223223
int mac_read_from_otp(void)
224224
{
225225
unsigned int i;
226-
int ret;
227226

228227
if (!is_data_valid())
229228
return -1;
@@ -245,5 +244,5 @@ int mac_read_from_otp(void)
245244
eth_env_set_enetaddr(enetvar, otp.mac_addr[i]);
246245
}
247246

248-
return ret;
247+
return 0;
249248
}

0 commit comments

Comments
 (0)