From 9787ed6e5cee7a62320f3014eb5e7b373502c292 Mon Sep 17 00:00:00 2001 From: Zhen Lei Date: Thu, 1 Sep 2016 14:54:55 +0800 Subject: of/numa: remove a duplicated warning This warning has been printed in of_numa_parse_cpu_nodes before. Signed-off-by: Zhen Lei Acked-by: Rob Herring Signed-off-by: Will Deacon --- drivers/of/of_numa.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'drivers') 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) np->name); of_node_put(np); - if (!r) { - if (nid >= MAX_NUMNODES) - pr_warn("NUMA: Node id %u exceeds maximum value\n", - nid); - else - return nid; - } + if (!r) + return nid; return NUMA_NO_NODE; } -- cgit v1.2.3