drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
authorjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:46:37 +0000 (03:46 +0000)
committerjsg <jsg@openbsd.org>
Tue, 6 Feb 2024 03:46:37 +0000 (03:46 +0000)
From Srinivasan Shanmugam
ff5aefbbd82ea7eee61606ff7cce56bfac269010 in linux-6.6.y/6.6.16
bf2ad4fb8adca89374b54b225d494e0b1956dbea in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_fence.c

index 6c5cd76..6a7b64a 100644 (file)
@@ -90,7 +90,7 @@ struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f)
                return NULL;
 
        fence = container_of(f, struct amdgpu_amdkfd_fence, base);
-       if (fence && f->ops == &amdkfd_fence_ops)
+       if (f->ops == &amdkfd_fence_ops)
                return fence;
 
        return NULL;