From 70f6d8261427104d246847e4289d6bae07db851e Mon Sep 17 00:00:00 2001 From: Jacob Garber Date: Mon, 24 Jun 2019 13:24:16 -0600 Subject: cpu/amd/family_10h-family_15h: Remove dead assignment Pstate_num is initialized later when it is used as a loop index, so this duplicate assignment can be removed. Change-Id: I71429bd3306139a823ed39e751d779e4d874f657 Signed-off-by: Jacob Garber Found-by: scan-build 8.0.0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/33745 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/cpu/amd/family_10h-family_15h/powernow_acpi.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/cpu/amd') diff --git a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c index e648b71750..be936f66e3 100644 --- a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c +++ b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c @@ -259,8 +259,6 @@ void amd_generate_powernow(u32 pcontrol_blk, u8 plen, u8 onlyBSP) else if (mctGetLogicalCPUID(0) & AMD_FAM15_ALL) boost_count = (dtemp >> 2) & 0x7; - Pstate_num = 0; - /* See if the CPUID(0x80000007) returned EDX[7]==1b */ cpuid1 = cpuid(0x80000007); if ((cpuid1.edx & 0x80) != 0x80) { -- cgit v1.2.3