aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorAndrey Vatoropin <[email protected]>2025-04-02 14:12:25 +0000
committerAlex Deucher <[email protected]>2025-05-22 16:00:30 +0000
commiteed6a6b2264078806163424b7cb70a3b47cb8e97 (patch)
treeccd1eb778606912765a254f4bc43fd8614cfa945 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parentMerge tag 'nova-next-v6.16-2025-05-20' of https://gitlab.freedesktop.org/drm/... (diff)
downloadkernel-eed6a6b2264078806163424b7cb70a3b47cb8e97.tar.gz
kernel-eed6a6b2264078806163424b7cb70a3b47cb8e97.zip
drm/amdkfd: Change svm_range_get_info return type
Static analysis shows that pointer "svms" cannot be NULL because it points to the object "struct svm_range_list". Remove the extra NULL check. It is meaningless and harms the readability of the code. In the function svm_range_get_info() there is no possibility of failure. Therefore, the caller of the function svm_range_get_info() does not need a return value. Change the function svm_range_get_info() return type from "int" to "void". Since the function svm_range_get_info() has a return type of "void". The caller of the function svm_range_get_info() does not need a return value. Delete extra code. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Andrey Vatoropin <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions