From: jsg Date: Tue, 6 Feb 2024 03:46:37 +0000 (+0000) Subject: drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e82a142a8ae76776ba69edfecfe6cee568eced88;p=openbsd 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 --- 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;