reg is only used inside the #if clause, so declare it there. trivial.
authorPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 26 Oct 2010 15:11:45 +0000 (15:11 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 26 Oct 2010 15:11:45 +0000 (15:11 +0000)
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5989 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/cpu/amd/model_10xxx/init_cpus.c

index b20446f7e2ad51f7c2a7d3a44dd9e1d1ab7c30b8..8f85bceb758b4a64a39eab2a8505e3c55ae6b9b0 100644 (file)
@@ -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;