Style.
Reviewed by: bz MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c06cc56e39
commit
49cf58e559
@ -1382,15 +1382,13 @@ in_lltable_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3add
|
||||
IF_AFDATA_LOCK_ASSERT(llt->llt_ifp);
|
||||
KASSERT(l3addr->sa_family == AF_INET,
|
||||
("sin_family %d", l3addr->sa_family));
|
||||
lle = in_lltable_find_dst(llt, sin->sin_addr);
|
||||
KASSERT((flags & (LLE_UNLOCKED | LLE_EXCLUSIVE)) !=
|
||||
(LLE_UNLOCKED | LLE_EXCLUSIVE),
|
||||
("wrong lle request flags: %#x", flags));
|
||||
|
||||
lle = in_lltable_find_dst(llt, sin->sin_addr);
|
||||
if (lle == NULL)
|
||||
return (NULL);
|
||||
|
||||
KASSERT((flags & (LLE_UNLOCKED|LLE_EXCLUSIVE)) !=
|
||||
(LLE_UNLOCKED|LLE_EXCLUSIVE),("wrong lle request flags: 0x%X",
|
||||
flags));
|
||||
|
||||
if (flags & LLE_UNLOCKED)
|
||||
return (lle);
|
||||
|
||||
|
@ -2325,16 +2325,13 @@ in6_lltable_lookup(struct lltable *llt, u_int flags,
|
||||
IF_AFDATA_LOCK_ASSERT(llt->llt_ifp);
|
||||
KASSERT(l3addr->sa_family == AF_INET6,
|
||||
("sin_family %d", l3addr->sa_family));
|
||||
KASSERT((flags & (LLE_UNLOCKED | LLE_EXCLUSIVE)) !=
|
||||
(LLE_UNLOCKED | LLE_EXCLUSIVE),
|
||||
("wrong lle request flags: %#x", flags));
|
||||
|
||||
lle = in6_lltable_find_dst(llt, &sin6->sin6_addr);
|
||||
|
||||
if (lle == NULL)
|
||||
return (NULL);
|
||||
|
||||
KASSERT((flags & (LLE_UNLOCKED|LLE_EXCLUSIVE)) !=
|
||||
(LLE_UNLOCKED|LLE_EXCLUSIVE),("wrong lle request flags: 0x%X",
|
||||
flags));
|
||||
|
||||
if (flags & LLE_UNLOCKED)
|
||||
return (lle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user