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 <rui.zhang@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Zhang Rui 2023-03-27 14:57:06 +08:00
parent fcfa1ce074
commit c2c25e85df

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