Date: Tue, 7 May 2013 18:45:34 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250334 - head/sys/vm Message-ID: <201305071845.r47IjYgw024871@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305071845.r47IjYgw024871>