From 354ef278e99d5f16732c887ac6d734553ab768cd Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 6 Apr 2022 16:45:28 -0700 Subject: [PATCH] powernow(4): Fix unused variable warnings by using the variables. --- sys/x86/cpufreq/powernow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/cpufreq/powernow.c b/sys/x86/cpufreq/powernow.c index 977798ab2f77..bc17c7e96999 100644 --- a/sys/x86/cpufreq/powernow.c +++ b/sys/x86/cpufreq/powernow.c @@ -913,7 +913,7 @@ pn_probe(device_t dev) * mobile processor. If not, it is a low powered desktop * processor. */ - if (PN7_STA_SFID(status) != PN7_STA_MFID(status)) { + if (sfid != mfid) { sc->vid_to_volts = pn7_mobile_vid_to_volts; device_set_desc(dev, "PowerNow! K7"); } else { @@ -930,7 +930,7 @@ pn_probe(device_t dev) sc->vid_to_volts = pn8_vid_to_volts; sc->fsb = rate / 100000 / pn8_fid_to_mult[cfid]; - if (PN8_STA_SFID(status) != PN8_STA_MFID(status)) + if (sfid != mfid) device_set_desc(dev, "PowerNow! K8"); else device_set_desc(dev, "Cool`n'Quiet K8");