Message ID | 1470647899-6324-5-git-send-email-thunder.leizhen@huawei.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 7b3fbdc..3157130 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of/of_numa.c @@ -174,13 +174,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; }