summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-12-28 21:18:01 +0000
committerbz <bz@FreeBSD.org>2008-12-28 21:18:01 +0000
commite46dfc4a1843e8da9da2fceed45ebc43d45d62b1 (patch)
treeb710686d33a54783fc3b3a183d8bbf44ab04deae /sys
parent208a4373c4519b25315198a56c10b99337c8e35a (diff)
downloadFreeBSD-src-e46dfc4a1843e8da9da2fceed45ebc43d45d62b1.zip
FreeBSD-src-e46dfc4a1843e8da9da2fceed45ebc43d45d62b1.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 3f11e82..35678b9 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -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
OpenPOWER on IntegriCloud