]> Git Repo - linux.git/commit
memblock: Return NUMA_NO_NODE instead of -1 to improve code readability
authorYuntao Wang <[email protected]>
Thu, 7 Dec 2023 13:10:01 +0000 (21:10 +0800)
committerMike Rapoport (IBM) <[email protected]>
Fri, 8 Dec 2023 08:31:00 +0000 (10:31 +0200)
commit2159bd4e905704b1765b6b883ea15e51ad986a6a
treea61f270a53d2266304fc0ff7baa105d6fdff98fe
parent33cc938e65a98f1d29d0a18403dbbee050dcad9a
memblock: Return NUMA_NO_NODE instead of -1 to improve code readability

When no corresponding memory region is found for the given pfn, return
NUMA_NO_NODE instead of -1. This improves code readability and aligns with
the existing logic of the memblock_search_pfn_nid() function's user.

Signed-off-by: Yuntao Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport (IBM) <[email protected]>
mm/memblock.c
This page took 0.05307 seconds and 4 git commands to generate.