Date: Tue, 17 Aug 2010 09:13:43 +0200 From: Ed Schouten <ed@80386.nl> To: Andre Oppermann <andre@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r211396 - head/sys/vm Message-ID: <20100817071343.GV2978@hoeg.nl> In-Reply-To: <201008161424.o7GEO0WV000794@svn.freebsd.org> References: <201008161424.o7GEO0WV000794@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] * Andre Oppermann <andre@FreeBSD.org> wrote: > + if (keg->uk_maxpages) > + nitems = keg->uk_maxpages * keg->uk_ipers; > + else > + nitems = 0; So what's the actual meaning of the if-statement here? If keg->uk_maxpages == 0, the multiplication will always yield 0 as well, right? -- Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxqNqcACgkQ52SDGA2eCwXgrwCfbSSlGLt3hHqSnSy9D5MOrYBB piAAn0R1sK++BY2OstCw64sszKr6fKou =+47z -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100817071343.GV2978>
