diff mbox series

[3/3] net: lwip: remove net_lwip_remove_netif()

Message ID 20250306142525.3079189-4-jerome.forissier@linaro.org
State New
Headers show
Series net: lwip: map struct udevice to struct netif | expand

Commit Message

Jerome Forissier March 6, 2025, 2:25 p.m. UTC
net_lwip_remove_netif() is not used, remove it.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
---
 include/net-lwip.h  | 1 -
 net/lwip/net-lwip.c | 6 ------
 2 files changed, 7 deletions(-)
diff mbox series

Patch

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();