From c2c32a1a709f8d628ebe0b1282cd4dd5e4421f22 Mon Sep 17 00:00:00 2001 From: Xorg Date: Wed, 18 May 2016 20:51:13 +0200 Subject: [PATCH] Remove unnecessary tests in cpu_rdmsr_range() --- libcpuid/rdmsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpuid/rdmsr.c b/libcpuid/rdmsr.c index 8c2f322..26375b1 100644 --- a/libcpuid/rdmsr.c +++ b/libcpuid/rdmsr.c @@ -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;