aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-04-30 08:05:13 +0000
committerAlex Deucher <[email protected]>2025-04-30 22:18:52 +0000
commit97c39b4da606f6e6ec62689d1963ee6a5ad7f8ac (patch)
treeaf2b675f017160123e0bfb6586b14b717ac3f493 /drivers/gpu/drm/amd/amdgpu
parentdrm/amdgpu/userq: Call unreserve on error in amdgpu_userq_fence_read_wptr() (diff)
downloadkernel-97c39b4da606f6e6ec62689d1963ee6a5ad7f8ac.tar.gz
kernel-97c39b4da606f6e6ec62689d1963ee6a5ad7f8ac.zip
drm/amdgpu/userq: remove unnecessary NULL check
The "ticket" pointer points to in the middle of the &exec struct so it can't be NULL. Remove the check. Reviewed-by: Christian König <[email protected]> Acked-by: Shashank Sharma <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
index afbe01149ed3..33544586ffaa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
@@ -623,7 +623,7 @@ amdgpu_userq_validate_bos(struct amdgpu_userq_mgr *uq_mgr)
clear = false;
unlock = true;
/* The caller is already holding the reservation lock */
- } else if (ticket && dma_resv_locking_ctx(resv) == ticket) {
+ } else if (dma_resv_locking_ctx(resv) == ticket) {
clear = false;
unlock = false;
/* Somebody else is using the BO right now */