From 9f153891c6d211fcb65c9d54879d73855c823439 Mon Sep 17 00:00:00 2001 From: Christian Koenig Date: Tue, 16 Feb 2016 16:23:02 +0100 Subject: [PATCH 3845/4131] drm/amdgpu: cleanup the sync code V2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No need for two functions doing the same, remove one and add comments what those functions actually do. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 065e1ad..6d48d52 100755 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c @@ -89,7 +89,7 @@ static void *amdgpu_sync_get_owner(struct dma_fence *f) struct drm_sched_fence *s_fence; struct amdgpu_amdkfd_fence *kfd_fence; - if (f == NULL) + if (!f) return AMDGPU_FENCE_OWNER_UNDEFINED; s_fence = to_drm_sched_fence(f); -- 2.7.4