Commit 9787ed6e authored by Zhen Lei's avatar Zhen Lei Committed by Will Deacon

of/numa: remove a duplicated warning

This warning has been printed in of_numa_parse_cpu_nodes before.
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 571a588f
...@@ -179,13 +179,8 @@ int of_node_to_nid(struct device_node *device) ...@@ -179,13 +179,8 @@ int of_node_to_nid(struct device_node *device)
np->name); np->name);
of_node_put(np); of_node_put(np);
if (!r) { if (!r)
if (nid >= MAX_NUMNODES)
pr_warn("NUMA: Node id %u exceeds maximum value\n",
nid);
else
return nid; return nid;
}
return NUMA_NO_NODE; return NUMA_NO_NODE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment