]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: simplify return value in amdgpu_userq_get_doorbell_index
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 18 May 2026 12:12:15 +0000 (17:42 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 15:58:10 +0000 (11:58 -0400)
commitd8d9c820405eb1fcbde959de8898ad7d716a2d7b
tree07bc5b6985aeca44f5342f5e802e9d382c4493ef
parente984d61d92e702096058f0f828f4b2b8563b88ce
drm/amdgpu: simplify return value in amdgpu_userq_get_doorbell_index

amdgpu_userq_get_doorbell_index returns a uint64 type index
as well as a int type failure values. Simplifying this and
using a int type return value and getting the index in input pointer
of type uint64 type.

Also since it's used at once place making it static would be better.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e947ec9d0529d5f93dbdb33cd197347f6a7b2922)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h