mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18284 from jia200x/pr/gnrc_netif_move_tested_options
gnrc_netif: move `option_tested` to default init function
This commit is contained in:
commit
2198eb84c0
@ -1634,6 +1634,9 @@ int gnrc_netif_default_init(gnrc_netif_t *netif)
|
||||
netif->cur_hl = CONFIG_GNRC_NETIF_DEFAULT_HL;
|
||||
#ifdef MODULE_GNRC_IPV6_NIB
|
||||
gnrc_ipv6_nib_init_iface(netif);
|
||||
#endif
|
||||
#if DEVELHELP
|
||||
assert(options_tested);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
@ -1853,9 +1856,6 @@ static void *_gnrc_netif_thread(void *args)
|
||||
LOG_ERROR("gnrc_netif: init failed: %d\n", ctx->result);
|
||||
return NULL;
|
||||
}
|
||||
#if DEVELHELP
|
||||
assert(options_tested);
|
||||
#endif
|
||||
#ifdef MODULE_NETSTATS_L2
|
||||
memset(&netif->stats, 0, sizeof(netstats_t));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user