From nobody Wed Apr 06 23:46:15 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1ECE11A83C94; Wed, 6 Apr 2022 23:46:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYh3q6NCHz4QnS; Wed, 6 Apr 2022 23:46:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eMH0je0t3R4TkuPWafi472V4XBxnjnf7zYJ7ZxqLOzA=; b=h7gUGcICFyI61B89ixDptyEZsup8A4IRC8nMnd5koipBsZRHkmiOTkCiu/mFsSR9eYRdxm 0MmsJ5Cctr2khKTqMQM5/ezuOO7RR8nWonSCwt0jn9tqvhNNrTBII0q2OkbPQx5ErIcOiB 3cyADD4gCRNbwZAT5hRdH/NCaMsbKli5j4Vzgin/UqLUrQcRR0RHZPGsCvG+I7L+qQpVb/ HJ+Ri8xII7OW6YPrk1EHTd3VnxArS0YKz5CCUr1/nRLB8yIW7UDeyd8AJMtHvNkpunKl6c AmbM5nK7Yvyp29p3tJsvilD1bh1jMdAEdYIu8Wlow92F8fq61On+UR+cpfy2HQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7FD062497A; Wed, 6 Apr 2022 23:46:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 236NkFiC008992; Wed, 6 Apr 2022 23:46:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkFc4008990; Wed, 6 Apr 2022 23:46:15 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:15 GMT Message-Id: <202204062346.236NkFc4008990@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 354ef278e99d - main - powernow(4): Fix unused variable warnings by using the variables. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 354ef278e99d5f16732c887ac6d734553ab768cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eMH0je0t3R4TkuPWafi472V4XBxnjnf7zYJ7ZxqLOzA=; b=f3hOKDBK6sJ1PGYIkZDcuW68TtIRsyBIXQyHByOA3t7RyVSuMBpzLBKd5dzm2TAylwoPVj gftHjoh64rfbHUiH33hSktxbl/drV7q13A/nBDNsoiVsMV1eGMjUUNn57u7aVyhG/JpJN0 eTfmng3FITJrXNWINgbinCnXmHpDN3k8+1r++eqxxABlwmQxF5p0gsloKwI0dOm7lkCW0H UbzGbU4Uic9G+8PF+BBdVZMcIPACMYwmCL9+4AgDrMRRUUvP0ysfhsqliuZU/UeI12QQyo 7dOj+xS+ZwHUFAJXZJesybHmzQCkDT4ce4e8A8bnhTOWFz+LiypNrIOe1EYvwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288777; a=rsa-sha256; cv=none; b=enwK2a2VtoC3LOD5hLflduG4L+yCN0RSxecDTR8HDB/QLGSN5QQq7/dSLFCCAt0AHOgxuL S00LXe6iUFOCyEqt460+JhZPzKlempY6GvANsnV5e9gnZaiVkd+XHvL88eYHCl6GrdanNU a1pUyHRlUEDMkFow0K4W8+zo4ND40Nea8cJ+ebH3uP32ILPm2dCnfKJ7Qc/bTgjwS8yA2S hNnHTo68ZOFbmkv1T8MkmkycvRkZSRM0j8fhihLPZ/FskQ+oAZMpXvSKtUWj2E055Yvd/c MPCqnPlfokuNP4qMzkXbB9cTUqZyf3w3wbW0vgLQkmuPKL2QIBwseZNsZWd1+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=354ef278e99d5f16732c887ac6d734553ab768cd commit 354ef278e99d5f16732c887ac6d734553ab768cd Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin 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");