From ce90c0df4175f3fc9e2d06bd9359485df8834fc3 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Thu, 14 Dec 2017 09:58:41 -0700 Subject: soc/amd/stoneyridge/bootblock/bootblock.c: Fix unused value In function load_smu_fw1(), variable base receives one value and is immediately overwritten. Remove the first line, as it's useless. This fixes CID 1383612 BUG=b:70620140 TEST=Build kahlee and boot. Change-Id: I1a1eae52722606a9e871e26faa7927e207102ae8 Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/22873 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/amd/stoneyridge/bootblock/bootblock.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/soc/amd/stoneyridge/bootblock/bootblock.c b/src/soc/amd/stoneyridge/bootblock/bootblock.c index a76eb01bba..7d659d75b5 100644 --- a/src/soc/amd/stoneyridge/bootblock/bootblock.c +++ b/src/soc/amd/stoneyridge/bootblock/bootblock.c @@ -91,7 +91,6 @@ static void load_smu_fw1(void) u32 base, limit; /* Open a posted hole from 0x80000000 : 0xfed00000-1 */ - base = 0x80000000; base = (0x80000000 >> 8) | MMIO_WE | MMIO_RE; limit = (ALIGN_DOWN(HPET_BASE_ADDRESS - 1, 64 * KiB) >> 8); pci_write_config32(SOC_ADDR_DEV, D18F1_MMIO_LIMIT0_LO, limit); -- cgit v1.2.3