summaryrefslogtreecommitdiff
path: root/board/varisys/common/sys_eeprom.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/varisys/common/sys_eeprom.c')
-rw-r--r--board/varisys/common/sys_eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/varisys/common/sys_eeprom.c b/board/varisys/common/sys_eeprom.c
index d235897311..69f596a4cc 100644
--- a/board/varisys/common/sys_eeprom.c
+++ b/board/varisys/common/sys_eeprom.c
@@ -486,7 +486,7 @@ int mac_read_from_eeprom_common(void)
/* Only initialize environment variables that are blank
* (i.e. have not yet been set)
*/
- if (!getenv(enetvar))
+ if (!env_get(enetvar))
env_set(enetvar, ethaddr);
}
}