From 7a00ca75d70ceb336e189851dca06b363139ed96 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sat, 12 Oct 2013 21:29:26 +0200 Subject: northbridge/amd/amdk8/raminit_f_dqs.c: Remove unused variable `reg` in `setup_mtrr_dqs()` Change-Id: I7fc7819c329c058472031e82237be5c170b277f4 Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/3965 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) Reviewed-by: Jonathan A. Kollasch --- src/northbridge/amd/amdk8/raminit_f_dqs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/northbridge/amd/amdk8/raminit_f_dqs.c b/src/northbridge/amd/amdk8/raminit_f_dqs.c index 08a3bab6c7..4438340ec3 100644 --- a/src/northbridge/amd/amdk8/raminit_f_dqs.c +++ b/src/northbridge/amd/amdk8/raminit_f_dqs.c @@ -1735,7 +1735,6 @@ static void set_top_mem_ap(unsigned tom_k, unsigned tom2_k) static void setup_mtrr_dqs(unsigned tom_k, unsigned tom2_k) { - unsigned reg; msr_t msr; #if 0 @@ -1752,7 +1751,7 @@ static void setup_mtrr_dqs(unsigned tom_k, unsigned tom2_k) wrmsr(0x258, msr); //[1M, TOM) - reg = range_to_mtrr(2, 0, tom_k,4*1024*1024, MTRR_TYPE_WRBACK, 40); + range_to_mtrr(2, 0, tom_k,4*1024*1024, MTRR_TYPE_WRBACK, 40); //[4G, TOM2) if(tom2_k) { -- cgit v1.2.3