From: Zhang Rui Date: Mon, 27 Mar 2023 06:57:06 +0000 (+0800) Subject: tools/power/turbostat: Remove a redundant check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c2c25e85df316a624e4a8ee85d65ea29265f486d;p=linux.git tools/power/turbostat: Remove a redundant check Platforms with has_msr_misc_pwr_mgmt set is a subset of platforms with has_nhm_msrs set. Thus remove the redudant check for platform->has_nhm_msrs. Signed-off-by: Zhang Rui Reviewed-by: Len Brown --- diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index bc221e800aec6..4eb10491f7143 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -5665,9 +5665,6 @@ void decode_misc_pwr_mgmt_msr(void) { unsigned long long msr; - if (!platform->has_nhm_msrs) - return; - if (!platform->has_msr_misc_pwr_mgmt) return;