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 14:39:07 +0000 (10:39 -0400)
commite947ec9d0529d5f93dbdb33cd197347f6a7b2922
tree06dcdd468a2d51fe39a1f0276823c32f54e01d00
parent83a26c812e0529eb040d31a76f73e33e637243d4
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h