]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
init.c: Remove no-op term function stable staging
authorAndrei Tatar <andrei@unikraft.io>
Tue, 29 Apr 2025 11:02:23 +0000 (13:02 +0200)
committerMichalis Pappas <michalis@unikraft.io>
Tue, 29 Apr 2025 12:00:53 +0000 (14:00 +0200)
This change removes liblwip_term, as it did nothing and ran uselessly on
system shutdown.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
GitHub-Closes: #62

init.c

diff --git a/init.c b/init.c
index 4952d222ae9e4dfb92d1d6175f9ba3ae47d4f2fd..2e7daace41406fe974dfd6756d6f56051e7eb7b6 100644 (file)
--- a/init.c
+++ b/init.c
@@ -467,12 +467,7 @@ dns_done:
        return 0;
 }
 
        return 0;
 }
 
-static void liblwip_term(const struct uk_term_ctx *tctx __unused)
-{
-       /* nothing to do */
-}
-
-uk_lib_initcall(liblwip_init, liblwip_term);
+uk_lib_initcall(liblwip_init, 0);
 
 #if CONFIG_LWIP_WAITIFACE
 static void _lwip_netif_waitif(struct netif *nf, netif_nsc_reason_t reason,
 
 #if CONFIG_LWIP_WAITIFACE
 static void _lwip_netif_waitif(struct netif *nf, netif_nsc_reason_t reason,