From e82a142a8ae76776ba69edfecfe6cee568eced88 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 6 Feb 2024 03:46:37 +0000 Subject: [PATCH] drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()' 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_fence.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_fence.c index 6c5cd76d523..6a7b64a20c5 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_fence.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_fence.c @@ -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; -- 2.20.1