Date: Wed, 1 Feb 2006 06:52:13 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90859 for review Message-ID: <200602010652.k116qDaw026891@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90859 Change 90859 by alc@alc_home on 2006/02/01 06:51:49 Simplify. Affected files ... .. //depot/projects/superpages/src/sys/vm/vm_reserve.c#14 edit Differences ... ==== //depot/projects/superpages/src/sys/vm/vm_reserve.c#14 (text+ko) ==== @@ -513,7 +513,7 @@ static vm_page_t preempt_contig_alloc(int *level, int free_pool) { - int l, lev = level ? *level : -1; + int l, lev = *level; vm_object_t object; vm_page_t m = NULL; reservation_t sp, sp_next; @@ -594,8 +594,7 @@ } done: KASSERT(lev > -1, ("preempt_contig_alloc: invalid level")); - if (level != NULL) - *level = lev; + *level = lev; return (m); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602010652.k116qDaw026891>