From owner-svn-src-head@FreeBSD.ORG Tue Aug 17 07:13:45 2010 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 29703106566B; Tue, 17 Aug 2010 07:13:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id B9BD08FC08; Tue, 17 Aug 2010 07:13:44 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 9F13D2A28CBE; Tue, 17 Aug 2010 09:13:43 +0200 (CEST) Date: Tue, 17 Aug 2010 09:13:43 +0200 From: Ed Schouten To: Andre Oppermann Message-ID: <20100817071343.GV2978@hoeg.nl> References: <201008161424.o7GEO0WV000794@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Lez9QO3Seu3ycz0M" Content-Disposition: inline In-Reply-To: <201008161424.o7GEO0WV000794@svn.freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r211396 - head/sys/vm 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: Tue, 17 Aug 2010 07:13:45 -0000 --Lez9QO3Seu3ycz0M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andre Oppermann wrote: > + if (keg->uk_maxpages) > + nitems =3D keg->uk_maxpages * keg->uk_ipers; > + else > + nitems =3D 0; So what's the actual meaning of the if-statement here? If keg->uk_maxpages =3D=3D 0, the multiplication will always yield 0 as well, right? --=20 Ed Schouten WWW: http://80386.nl/ --Lez9QO3Seu3ycz0M Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxqNqcACgkQ52SDGA2eCwXgrwCfbSSlGLt3hHqSnSy9D5MOrYBB piAAn0R1sK++BY2OstCw64sszKr6fKou =+47z -----END PGP SIGNATURE----- --Lez9QO3Seu3ycz0M--