amdgpu_userq_fence_driver_process callers always pass in valid fence_drv
so the function itself does not have to do it.

Signed-off-by: Tvrtko Ursulin <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
index 8ec7f6b65d51..30c88928e043 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
@@ -149,9 +149,6 @@ void amdgpu_userq_fence_driver_process(struct 
amdgpu_userq_fence_driver *fence_d
        u64 rptr;
        int i;
 
-       if (!fence_drv)
-               return;
-
        spin_lock_irqsave(&fence_drv->fence_list_lock, flags);
        rptr = amdgpu_userq_fence_read(fence_drv);
 
-- 
2.51.1

Reply via email to