For consistency use LLE_IS_VALID() in this 4th place that is actually

interested in the (void *)-1 return value hack.
This way we can easily identify those special parts of the code.
This commit is contained in:
Bjoern A. Zeeb 2008-12-28 21:18:01 +00:00
parent 08a2459ee1
commit 42d866dd69

View File

@ -1153,7 +1153,7 @@ in_lltable_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3add
lle = (void *)-1;
}
if (lle != NULL && lle != (void *)-1) {
if (LLE_IS_VALID(lle)) {
if (flags & LLE_EXCLUSIVE)
LLE_WLOCK(lle);
else