]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: declutter the code with goto
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 6 Mar 2026 06:54:29 +0000 (12:24 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2026 21:34:15 +0000 (16:34 -0500)
commita07930e4db4ceecb22f5ae63c97ed09c020844f8
tree60fc56dfca1c13e0dcebb69ac6e6f4c4b3f446e1
parent28cacaace5cde8318b7da967b3955a73cc6de91a
drm/amdgpu/userq: declutter the code with goto

Clean up the amdgpu_userq_create function clean up in
failure condition using goto method. This avoid replication
of cleanup for every failure condition.

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