diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index c1bd62ce3144d973861414125a9d669b7e08c719..625b0573e5f8db57a84b39e4f5dcfe6944ab2f0e 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; }