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:
Axel Lin 2018-01-05 16:05:38 +08:00 committed by Dirk Ziegelmeier
parent 05ded5516d
commit efa90d4294

View File

@ -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;
}