[PATCH 3/3] net: lwip: remove net_lwip_remove_netif()
Jerome Forissier
jerome.forissier at linaro.org
Thu Mar 6 15:25:21 CET 2025
net_lwip_remove_netif() is not used, remove it.
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
include/net-lwip.h | 1 -
net/lwip/net-lwip.c | 6 ------
2 files changed, 7 deletions(-)
diff --git a/include/net-lwip.h b/include/net-lwip.h
index 58ff2bb2d43..36df78d61db 100644
--- a/include/net-lwip.h
+++ b/include/net-lwip.h
@@ -13,7 +13,6 @@ enum proto_t {
void net_lwip_set_current(void);
struct netif *net_lwip_netif(struct udevice *udev);
struct netif *net_lwip_netif_noip(struct udevice *udev);
-void net_lwip_remove_netif(struct netif *netif);
struct netif *net_lwip_get_netif(void);
int net_lwip_rx(struct udevice *udev, struct netif *netif);
diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
index 77f16f8af9c..f50cfbf27fa 100644
--- a/net/lwip/net-lwip.c
+++ b/net/lwip/net-lwip.c
@@ -214,12 +214,6 @@ struct netif *net_lwip_netif_noip(struct udevice *udev)
return get_or_create_netif(udev, false);
}
-void net_lwip_remove_netif(struct netif *netif)
-{
- netif_remove(netif);
- free(netif);
-}
-
int net_init(void)
{
eth_set_current();
--
2.43.0
More information about the U-Boot
mailing list