]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: Remove redundant call to priority_is_valid()
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 18 Oct 2023 00:56:57 +0000 (20:56 -0400)
committerLuben Tuikov <luben.tuikov@amd.com>
Sun, 22 Oct 2023 00:27:15 +0000 (20:27 -0400)
commitd3df66fd98557c25856860b7d9c3b8b93d449f0a
treefc617225c84e117d69b7dfb028bdbfcd72abca48
parent3d887d512494d678b17c57b835c32f4e48d34f26
drm/amdgpu: Remove redundant call to priority_is_valid()

Remove a redundant call to amdgpu_ctx_priority_is_valid() from
amdgpu_ctx_priority_permit(), which is called from amdgpu_ctx_init() which is
called from amdgpu_ctx_alloc() which is called from amdgpu_ctx_ioctl(), where
we've called amdgpu_ctx_priority_is_valid() already first thing in the
function.

Cc: Alex Deucher <Alexander.Deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20231018010359.30393-1-luben.tuikov@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c