drm/amdgpu: do not call insert_nop fn for zero count
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 31 Jul 2024 08:06:15 +0000 (13:36 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 14:43:28 +0000 (10:43 -0400)
commit67c4ca9f794951482c54a7006c8b3c367d6c3efc
treefb0d73f6afd0b38eba971b0839af758736281b9b
parentee0a469cf9175aeb6131c0476c4a4a8eb5997dfa
drm/amdgpu: do not call insert_nop fn for zero count

Do not make a function call for zero size NOP as it
does not add anything in the ring and is unnecessary
function call.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c