Skip to content

Commit 65c52b8

Browse files
andreittrmichpappas
authored andcommitted
init.c: Remove no-op term function
This change removes liblwip_term, as it did nothing and ran uselessly on system shutdown. Signed-off-by: Andrei Tatar <[email protected]> Approved-by: Michalis Pappas <[email protected]> Reviewed-by: Michalis Pappas <[email protected]> GitHub-Closes: #62
1 parent caa7d53 commit 65c52b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

init.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,7 @@ static int liblwip_init(struct uk_init_ctx *ictx __unused)
467467
return 0;
468468
}
469469

470-
static void liblwip_term(const struct uk_term_ctx *tctx __unused)
471-
{
472-
/* nothing to do */
473-
}
474-
475-
uk_lib_initcall(liblwip_init, liblwip_term);
470+
uk_lib_initcall(liblwip_init, 0);
476471

477472
#if CONFIG_LWIP_WAITIFACE
478473
static void _lwip_netif_waitif(struct netif *nf, netif_nsc_reason_t reason,

0 commit comments

Comments
 (0)