mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Get rid of redundant comparision which is guaranteed to be "true" for unsigned
integers. Obtained from: NetApp
This commit is contained in:
parent
4662939d55
commit
288aeb8561
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=243381
@ -148,7 +148,7 @@ msr_bitmap_change_access(char *bitmap, u_int msr, int access)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user