svn commit: r243381 - projects/bhyve/sys/amd64/vmm/intel

Neel Natu neel at FreeBSD.org
Thu Nov 22 00:08:20 UTC 2012


Author: neel
Date: Thu Nov 22 00:08:20 2012
New Revision: 243381
URL: http://svnweb.freebsd.org/changeset/base/243381

Log:
  Get rid of redundant comparision which is guaranteed to be "true" for unsigned
  integers.
  
  Obtained from:	NetApp

Modified:
  projects/bhyve/sys/amd64/vmm/intel/vmx_msr.c

Modified: projects/bhyve/sys/amd64/vmm/intel/vmx_msr.c
==============================================================================
--- projects/bhyve/sys/amd64/vmm/intel/vmx_msr.c	Wed Nov 21 22:04:40 2012	(r243380)
+++ projects/bhyve/sys/amd64/vmm/intel/vmx_msr.c	Thu Nov 22 00:08:20 2012	(r243381)
@@ -148,7 +148,7 @@ msr_bitmap_change_access(char *bitmap, u
 {
 	int byte, bit;
 
-	if (msr >= 0x00000000 && msr <= 0x00001FFF)
+	if (msr <= 0x00001FFF)
 		byte = msr / 8;
 	else if (msr >= 0xC0000000 && msr <= 0xC0001FFF)
 		byte = 1024 + (msr - 0xC0000000) / 8;


More information about the svn-src-projects mailing list