diff options
author | Mike Rapoport (IBM) <rppt@kernel.org> | 2024-06-14 11:05:43 +0300 |
---|---|---|
committer | Mike Rapoport (IBM) <rppt@kernel.org> | 2024-06-16 10:17:57 +0300 |
commit | 8043832e2a123fd9372007a29192f2f3ba328cd6 (patch) | |
tree | 91eead9aeec744a0c76e4da790894a9a35617185 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 3ac36aa7307363b7247ccb6f6a804e11496b2b36 (diff) |
memblock: use numa_valid_node() helper to check for invalid node ID
Introduce numa_valid_node(nid) that verifies that nid is a valid node ID
and use that instead of comparing nid parameter with either NUMA_NO_NODE
or MAX_NUMNODES.
This makes the checks for valid node IDs consistent and more robust and
allows to get rid of multiple WARNings.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions