mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-07 23:19:12 +08:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user