From owner-svn-src-head@FreeBSD.ORG Sun Dec 28 21:18:01 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92DB11065675; Sun, 28 Dec 2008 21:18:01 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 85DFF8FC08; Sun, 28 Dec 2008 21:18:01 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBSLI14Y024057; Sun, 28 Dec 2008 21:18:01 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBSLI1Fh024056; Sun, 28 Dec 2008 21:18:01 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200812282118.mBSLI1Fh024056@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Sun, 28 Dec 2008 21:18:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186544 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 21:18:01 -0000 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