mirror of
https://xff.cz/git/u-boot/
synced 2025-10-17 16:02:33 +02:00
net: punt bd->bi_ip_addr
This field gets read in one place (by "bdinfo"), and we can replace that with getenv("ipaddr"). After all, the bi_ip_addr field is kept up-to-date implicitly with the value of the ipaddr env var. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
committed by
Joe Hershberger
parent
e1902ac698
commit
50a47d0523
@@ -179,14 +179,6 @@ int flash_init_r(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int init_ip_address_r(void)
|
||||
{
|
||||
/* IP Address */
|
||||
bd_data.bi_ip_addr = getenv_IPaddr("ipaddr");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_STATUS_LED
|
||||
int status_led_set_r(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user