svn commit: r253317 - projects/bhyve_npt_pmap/sys/amd64/amd64
Neel Natu
neel at FreeBSD.org
Sat Jul 13 07:22:52 UTC 2013
Author: neel
Date: Sat Jul 13 07:22:51 2013
New Revision: 253317
URL: http://svnweb.freebsd.org/changeset/base/253317
Log:
Use the ternary if operator to simplify pmap_ps_enabled().
Submitted by: alc
Modified:
projects/bhyve_npt_pmap/sys/amd64/amd64/pmap.c
Modified: projects/bhyve_npt_pmap/sys/amd64/amd64/pmap.c
==============================================================================
--- projects/bhyve_npt_pmap/sys/amd64/amd64/pmap.c Sat Jul 13 07:17:18 2013 (r253316)
+++ projects/bhyve_npt_pmap/sys/amd64/amd64/pmap.c Sat Jul 13 07:22:51 2013 (r253317)
@@ -1092,10 +1092,7 @@ static __inline boolean_t
pmap_ps_enabled(pmap_t pmap)
{
- if ((pmap->pm_flags & PMAP_PDE_SUPERPAGE) != 0)
- return (TRUE);
- else
- return (FALSE);
+ return ((pmap->pm_flags & PMAP_PDE_SUPERPAGE) != 0);
}
static void
More information about the svn-src-projects
mailing list