svn commit: r186544 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Sun Dec 28 21:18:01 UTC 2008


Author: bz
Date: Sun Dec 28 21:18:01 2008
New Revision: 186544
URL: http://svn.freebsd.org/changeset/base/186544

Log:
  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.

Modified:
  head/sys/netinet/in.c

Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c	Sun Dec 28 17:16:32 2008	(r186543)
+++ head/sys/netinet/in.c	Sun Dec 28 21:18:01 2008	(r186544)
@@ -1153,7 +1153,7 @@ in_lltable_lookup(struct lltable *llt, u
 		lle = (void *)-1;
 		
 	}
-	if (lle != NULL && lle != (void *)-1) {
+	if (LLE_IS_VALID(lle)) {
 		if (flags & LLE_EXCLUSIVE)
 			LLE_WLOCK(lle);
 		else


More information about the svn-src-all mailing list