diff options
author | Mike Frysinger | 2012-04-04 18:53:40 +0000 |
---|---|---|
committer | Joe Hershberger | 2012-05-15 17:32:05 -0500 |
commit | 50a47d0523e8efebe912bef539a77ffd42116451 (patch) | |
tree | 4501fa8c08405a3d9595a252df1ce725e27f3a0b /arch/x86/lib | |
parent | e1902ac698194fdf20b473bd2d9c592c45554b72 (diff) |
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>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/board.c | 3 | ||||
-rw-r--r-- | arch/x86/lib/init_helpers.c | 8 |
2 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c index 5f0b62cea6e..15b4ae2e718 100644 --- a/arch/x86/lib/board.c +++ b/arch/x86/lib/board.c @@ -157,9 +157,6 @@ init_fnc_t *init_sequence_r[] = { flash_init_r, #endif env_relocate_r, -#ifdef CONFIG_CMD_NET - init_ip_address_r, -#endif #ifdef CONFIG_PCI pci_init_r, #endif diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index 9f4dee034f9..a8741d0e631 100644 --- a/arch/x86/lib/init_helpers.c +++ b/arch/x86/lib/init_helpers.c @@ -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) { |