From owner-svn-src-head@FreeBSD.ORG Tue May 7 18:45:34 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8B8E0F88; Tue, 7 May 2013 18:45:34 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7DFB3B00; Tue, 7 May 2013 18:45:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r47IjYRi024872; Tue, 7 May 2013 18:45:34 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r47IjYgw024871; Tue, 7 May 2013 18:45:34 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201305071845.r47IjYgw024871@svn.freebsd.org> From: Alan Cox Date: Tue, 7 May 2013 18:45:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250334 - head/sys/vm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 07 May 2013 18:45:34 -0000 Author: alc Date: Tue May 7 18:45:34 2013 New Revision: 250334 URL: http://svnweb.freebsd.org/changeset/base/250334 Log: Remove a redundant call to panic() from vm_radix_keydiff(). The assertion before the loop accomplishes the same thing. Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_radix.c Modified: head/sys/vm/vm_radix.c ============================================================================== --- head/sys/vm/vm_radix.c Tue May 7 18:08:49 2013 (r250333) +++ head/sys/vm/vm_radix.c Tue May 7 18:45:34 2013 (r250334) @@ -234,11 +234,9 @@ vm_radix_keydiff(vm_pindex_t index1, vm_ __func__, (uintmax_t)index1)); index1 ^= index2; - for (clev = 0; clev <= VM_RADIX_LIMIT ; clev++) - if (vm_radix_slot(index1, clev)) + for (clev = 0;; clev++) + if (vm_radix_slot(index1, clev) != 0) return (clev); - panic("%s: cannot reach this point", __func__); - return (0); } /*