tools/power/turbostat: Remove a redundant check
authorZhang Rui <rui.zhang@intel.com>
Mon, 27 Mar 2023 06:57:06 +0000 (14:57 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:18 +0000 (22:14 +0800)
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 <rui.zhang@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c

index bc221e800aec64fab6e967a6010ba6834ef04144..4eb10491f71439fd988ec19a6c060c8ff4307550 100644 (file)
@@ -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;