]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: remove dead code in the function svm_range_get_pte_flags
authorJesse Zhang <jesse.zhang@amd.com>
Thu, 30 May 2024 02:41:03 +0000 (10:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:02:59 +0000 (11:02 -0400)
commitdfe190aff8814227314744d8ca5e946d0ca72e24
tree9d526d7eec84b0b8e6d77bfe61ce2551b37fc70e
parent392829010238319689ee7aab5f9acffc23a53899
drm/amdkfd: remove dead code in the function svm_range_get_pte_flags

The varible uncached  set false, the condition uncached cannot be true.
So remove the dead code, mapping flags will set the flag AMDGPU_VM_MTYPE_UC in else.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c