]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: Remove env_get_ip helper() function
authorTom Rini <trini@konsulko.com>
Thu, 15 May 2025 23:31:30 +0000 (17:31 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:30:24 +0000 (08:30 -0600)
commit05f6f6e8c76c68a36125ec7a6af911ee9418bc99
treeb15690ea1e577add0fd352cc3756ce51d1724075
parent5b82721337e271609419dce490884392085d8d1f
net: Remove env_get_ip helper() function

Currently, we have the function env_get_ip which takes an IP address
in string form and returns a struct in_addr representation of that
address. It is however little used and means that a number of places
indirectly (and unclearly) get <env.h> via <net.h>. To clean this up
start by replacing env_get_ip() calls with string_to_ip() calls. This is
generally a no-op as env_get_ip(str) is an inline of
string_to_ip(env_get(str)) but in a few cases we can or already have
stored the result of env_get(str) and can save the additional call.

Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/elf.c
cmd/net.c
drivers/net/netconsole.c
include/net-common.h
net/link_local.c