Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Sunil Khatri and committed by
Alex Deucher
473527e7 a0f0b6d3

+1 -3
+1 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 1227 1227 } 1228 1228 1229 1229 ret = amdgpu_userq_restore_all(uq_mgr); 1230 - if (ret) { 1230 + if (ret) 1231 1231 drm_file_err(uq_mgr->file, "Failed to restore all queues\n"); 1232 - goto unlock; 1233 - } 1234 1232 1235 1233 unlock: 1236 1234 mutex_unlock(&uq_mgr->userq_mutex);