1
0
Fork 0
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:
Xorg 2016-05-18 20:51:13 +02:00
parent 85bac12db4
commit c2c32a1a70

View file

@ -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;