]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/userq: dont use goto to jump when at end of function
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 24 Mar 2026 07:48:28 +0000 (13:18 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Mar 2026 17:32:37 +0000 (13:32 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c

index b75b44a3169bc04795cc42504bafa2f687d6543a..f3fdfe535d02a72cef4c385ca416534b8e4ed889 100644 (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);