diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3845-drm-amdgpu-cleanup-the-sync-code-V2.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3845-drm-amdgpu-cleanup-the-sync-code-V2.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3845-drm-amdgpu-cleanup-the-sync-code-V2.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3845-drm-amdgpu-cleanup-the-sync-code-V2.patch new file mode 100644 index 00000000..ff017f71 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3845-drm-amdgpu-cleanup-the-sync-code-V2.patch @@ -0,0 +1,34 @@ +From 9f153891c6d211fcb65c9d54879d73855c823439 Mon Sep 17 00:00:00 2001 +From: Christian Koenig <christian.koenig@amd.com> +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 <christian.koenig@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: Chunming Zhou <david1.zhou@amd.com> +--- + 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 + |