drm/amdgpu/vpe: fix insert_nop ops
authorLang Yu <Lang.Yu@amd.com>
Sat, 7 Oct 2023 02:13:49 +0000 (10:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Oct 2023 14:58:33 +0000 (10:58 -0400)
commit9a37f65c4e450c4fed5dd5afd6b9f1c8493a3abc
tree8acba332d43e9ff888c0292f57b1bdd9de7cf042
parent54967d5683b24767c58789af19cf7083e560aa56
drm/amdgpu/vpe: fix insert_nop ops

Avoid infinite loop when count is 0.
This is missed in rebase.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c