summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-05-29 13:02:47 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 09:07:00 +0000
commit49bfc0e9e076c16b6bb6f11ec664963202defa22 (patch)
tree4bbf146e1227dee009ef0e8b688c439c96648a37
parent44245693ec5ad007f526cc7c333f2f59badf7b18 (diff)
sb/nvidia/ck804/lpc.c: Remove variable set but not used
Change-Id: I19b16bc2052440ca191cf3e30810ddc58a485a60 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33063 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/southbridge/nvidia/ck804/lpc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/southbridge/nvidia/ck804/lpc.c b/src/southbridge/nvidia/ck804/lpc.c
index 21235548a0..8caa8ed1ee 100644
--- a/src/southbridge/nvidia/ck804/lpc.c
+++ b/src/southbridge/nvidia/ck804/lpc.c
@@ -124,10 +124,9 @@ static void lpc_init(struct device *dev)
get_option(&on, "slow_cpu");
if (on) {
u16 pm10_bar;
- u32 dword;
pm10_bar = (pci_read_config16(dev, 0x60) & 0xff00);
outl(((on << 1) + 0x10), (pm10_bar + 0x10));
- dword = inl(pm10_bar + 0x10);
+ inl(pm10_bar + 0x10);
on = 8 - on;
printk(BIOS_DEBUG, "Throttling CPU %2d.%1.1d percent.\n",
(on * 12) + (on >> 1), (on & 1) * 5);