drm/amdgpu/userq: dont use goto to jump when at end of function

In function amdgpu_userq_restore_worker we dont need to use
goto as we already in the end of function and it will exit
naturally.

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>
This commit is contained in:
Sunil Khatri 2026-03-24 13:18:28 +05:30 committed by Alex Deucher
parent a0f0b6d31a
commit 473527e70e

View File

@ -1227,10 +1227,8 @@ static void amdgpu_userq_restore_worker(struct work_struct *work)
}
ret = amdgpu_userq_restore_all(uq_mgr);
if (ret) {
if (ret)
drm_file_err(uq_mgr->file, "Failed to restore all queues\n");
goto unlock;
}
unlock:
mutex_unlock(&uq_mgr->userq_mutex);