Skip to content

Commit 77c9622

Browse files
committed
Merge tag 'memblock-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
Pull memblock update from Mike Rapoport: "Code readability improvement. Use NUMA_NO_NODE instead of -1 as return value of memblock_search_pfn_nid() to improve code readability and consistency with the callers of that function" * tag 'memblock-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock: memblock: Return NUMA_NO_NODE instead of -1 to improve code readability
2 parents 0b7359c + 2159bd4 commit 77c9622

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/memblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ int __init_memblock memblock_search_pfn_nid(unsigned long pfn,
18851885
int mid = memblock_search(type, PFN_PHYS(pfn));
18861886

18871887
if (mid == -1)
1888-
return -1;
1888+
return NUMA_NO_NODE;
18891889

18901890
*start_pfn = PFN_DOWN(type->regions[mid].base);
18911891
*end_pfn = PFN_DOWN(type->regions[mid].base + type->regions[mid].size);

0 commit comments

Comments
 (0)