mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
netif: Add LWIP_ASSERT_CORE_LOCKED() to netif_set_remove_callback
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
This commit is contained in:
parent
05ded5516d
commit
efa90d4294
@ -909,6 +909,8 @@ netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_c
|
||||
void
|
||||
netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback)
|
||||
{
|
||||
LWIP_ASSERT_CORE_LOCKED();
|
||||
|
||||
if (netif) {
|
||||
netif->remove_callback = remove_callback;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user