git: 354ef278e99d - main - powernow(4): Fix unused variable warnings by using the variables.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 06 Apr 2022 23:46:15 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=354ef278e99d5f16732c887ac6d734553ab768cd

commit 354ef278e99d5f16732c887ac6d734553ab768cd
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:28 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:28 +0000

    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");