mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Remove unnecessary tests in cpu_rdmsr_range()
This commit is contained in:
parent
85bac12db4
commit
c2c32a1a70
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ int cpu_rdmsr_range(struct msr_driver_t* handle, uint32_t msr_index, uint8_t hig
|
|||
if(cpu_rdmsr(handle, msr_index, result))
|
||||
return set_error(ERR_HANDLE_R);
|
||||
|
||||
if(bits < 64 && highbit < 64 && lowbit < highbit) {
|
||||
if(bits < 64) {
|
||||
/* Show only part of register */
|
||||
*result >>= lowbit;
|
||||
*result &= (1ULL << bits) - 1;
|
||||
|
|
Loading…
Reference in a new issue