Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2008 21:18:01 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186544 - head/sys/netinet
Message-ID:  <200812282118.mBSLI1Fh024056@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812282118.mBSLI1Fh024056>