From f3e8542cc498da4a18f66cb7894afa6a49f977c2 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 26 Oct 2010 15:11:45 +0000 Subject: reg is only used inside the #if clause, so declare it there. trivial. Signed-off-by: Patrick Georgi Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5989 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_10xxx/init_cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/amd/model_10xxx/init_cpus.c b/src/cpu/amd/model_10xxx/init_cpus.c index b20446f7e2..8f85bceb75 100644 --- a/src/cpu/amd/model_10xxx/init_cpus.c +++ b/src/cpu/amd/model_10xxx/init_cpus.c @@ -913,9 +913,9 @@ static void finalize_node_setup(struct sys_info *sysinfo) { u8 i; u8 nodes = get_nodes(); - u32 reg; #if CONFIG_RAMINIT_SYSINFO + u32 reg; /* read Node0 F0_0x64 bit [8:10] to find out SbLink # */ reg = pci_read_config32(NODE_HT(0), 0x64); sysinfo->sblk = (reg >> 8) & 7; -- cgit v1.2.3