summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/net/if_llatbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/net/if_llatbl.c')
-rw-r--r--freebsd/sys/net/if_llatbl.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/freebsd/sys/net/if_llatbl.c b/freebsd/sys/net/if_llatbl.c
index b220d7aa..7b5c3a91 100644
--- a/freebsd/sys/net/if_llatbl.c
+++ b/freebsd/sys/net/if_llatbl.c
@@ -81,11 +81,6 @@ RW_SYSINIT(lltable_list_lock, &lltable_list_lock, "lltable_list_lock");
static void lltable_unlink(struct lltable *llt);
static void llentries_unlink(struct lltable *llt, struct llentries *head);
-static void htable_unlink_entry(struct llentry *lle);
-static void htable_link_entry(struct lltable *llt, struct llentry *lle);
-static int htable_foreach_lle(struct lltable *llt, llt_foreach_cb_t *f,
- void *farg);
-
/*
* Dump lle state for a specific address family.
*/
@@ -182,15 +177,16 @@ static void
htable_unlink_entry(struct llentry *lle)
{
- if ((lle->la_flags & LLE_LINKED) != 0) {
- IF_AFDATA_WLOCK_ASSERT(lle->lle_tbl->llt_ifp);
- CK_LIST_REMOVE(lle, lle_next);
- lle->la_flags &= ~(LLE_VALID | LLE_LINKED);
+ if ((lle->la_flags & LLE_LINKED) == 0)
+ return;
+
+ IF_AFDATA_WLOCK_ASSERT(lle->lle_tbl->llt_ifp);
+ CK_LIST_REMOVE(lle, lle_next);
+ lle->la_flags &= ~(LLE_VALID | LLE_LINKED);
#if 0
- lle->lle_tbl = NULL;
- lle->lle_head = NULL;
+ lle->lle_tbl = NULL;
+ lle->lle_head = NULL;
#endif
- }
}
struct prefix_match_data {