aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2016-09-01 02:54:55 -0400
committerWill Deacon <will.deacon@arm.com>2016-09-09 09:59:08 -0400
commit9787ed6e5cee7a62320f3014eb5e7b373502c292 (patch)
treec368588ea824ab55e5b10caea6dc16a0b219a6a8
parent571a588fec2de4efd6043805ab0b017c67b63a4d (diff)
of/numa: remove a duplicated warning
This warning has been printed in of_numa_parse_cpu_nodes before. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--drivers/of/of_numa.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c
index c1bd62ce3144..625b0573e5f8 100644
--- a/drivers/of/of_numa.c
+++ b/drivers/of/of_numa.c
@@ -179,13 +179,8 @@ int of_node_to_nid(struct device_node *device)
179 np->name); 179 np->name);
180 of_node_put(np); 180 of_node_put(np);
181 181
182 if (!r) { 182 if (!r)
183 if (nid >= MAX_NUMNODES) 183 return nid;
184 pr_warn("NUMA: Node id %u exceeds maximum value\n",
185 nid);
186 else
187 return nid;
188 }
189 184
190 return NUMA_NO_NODE; 185 return NUMA_NO_NODE;
191} 186}