drm/amdgpu: Clean up error handling in amdgpu_userq_fence_driver_alloc()
authorDan Carpenter <dan.carpenter@linaro.org>
Sat, 12 Apr 2025 14:39:43 +0000 (17:39 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:54:10 +0000 (10:54 -0400)
commit0e023c327b30ff306a7c08165a1ab9879c268226
treeeb2dbecc3cc96e7616531e0069af3bf6defccb42
parent8ff7c78baeeab746432934f7de82d56706c00c50
drm/amdgpu: Clean up error handling in amdgpu_userq_fence_driver_alloc()

1) Checkpatch complains if we print an error message for kzalloc()
   failure.  The kzalloc() failure already has it's own error messages
   built in.  Also this allocation is small enough that it is guaranteed
   to succeed.
2) Return directly instead of doing a goto free_fence_drv.  The
   "fence_drv" is already NULL so no cleanup is necessary.

Reviewed-by: Arvind Yadav <arvind.yadav@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c