[PATCH] drm: amd: amdgpu: Remove NULL check not needed before freeing functions

2019-10-29 Thread Saurav Girepunje
Remove unneeded NULL check before freeing functions kfree and debugfs_remove. Signed-off-by: Saurav Girepunje --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm

[PATCH] gpu: drm: amd: amdgpu: Remove call to memset after dma_alloc_coherent

2019-09-30 Thread Saurav Girepunje
dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Saurav Girepunje --- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c index