diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-03 13:13:23 +0900 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-07-03 11:16:27 +0300 |
| commit | 3b1e5d902dfa832e4b175cb1f5a000236d45ceb5 (patch) | |
| tree | c20de651faf18dacb9a23a54c94928923abffbc5 /drivers/of | |
| parent | 7cbdade40fb8f440c13ccd7a02d104bf32285187 (diff) | |
| download | linux-next-3b1e5d902dfa832e4b175cb1f5a000236d45ceb5.tar.gz linux-next-3b1e5d902dfa832e4b175cb1f5a000236d45ceb5.zip | |
of/numa: remove redundant numa_nodes_parsed node_set()
numa_add_memblk() now sets the node in numa_nodes_parsed itself, so the
caller's own node_set() is redundant. Remove it.
No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260703041329.2797584-4-ekffu200098@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'drivers/of')
| -rw-r--r-- | drivers/of/of_numa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index cd2dc8e825c9..230d5f628c1b 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of/of_numa.c @@ -59,11 +59,8 @@ static int __init of_numa_parse_memory_nodes(void) r = -EINVAL; } - for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) { + for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1); - if (!r) - node_set(nid, numa_nodes_parsed); - } if (!i || r) { of_node_put(np); |
