diff options
author | bz <bz@FreeBSD.org> | 2008-12-28 21:18:01 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-12-28 21:18:01 +0000 |
commit | e46dfc4a1843e8da9da2fceed45ebc43d45d62b1 (patch) | |
tree | b710686d33a54783fc3b3a183d8bbf44ab04deae /sys | |
parent | 208a4373c4519b25315198a56c10b99337c8e35a (diff) | |
download | FreeBSD-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.c | 2 |
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 |