summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/amdtopology_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/amdtopology_64.c')
-rw-r--r--arch/x86/mm/amdtopology_64.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/mm/amdtopology_64.c b/arch/x86/mm/amdtopology_64.c
index 4f822a24712..7d85cf7e032 100644
--- a/arch/x86/mm/amdtopology_64.c
+++ b/arch/x86/mm/amdtopology_64.c
@@ -74,7 +74,7 @@ int __init amd_numa_init(void)
unsigned long end = PFN_PHYS(max_pfn);
unsigned numnodes;
unsigned long prevbase;
- int i, nb, found = 0;
+ int i, nb;
u32 nodeid, reg;
if (!early_pci_allowed())
@@ -165,8 +165,6 @@ int __init amd_numa_init(void)
pr_info("Node %d MemBase %016lx Limit %016lx\n",
nodeid, base, limit);
- found++;
-
nodes[nodeid].start = base;
nodes[nodeid].end = limit;
@@ -176,7 +174,7 @@ int __init amd_numa_init(void)
node_set(nodeid, cpu_nodes_parsed);
}
- if (!found)
+ if (!nodes_weight(mem_nodes_parsed))
return -ENOENT;
return 0;
}