[PATCH] drm/amdgpu: remove unused variable in amdgpu_dma_buf_unmap()
Christian König
ckoenig.leichtzumerken at gmail.com
Fri Feb 26 08:05:12 UTC 2021
Am 26.02.21 um 05:24 schrieb Kevin Wang:
> clean up unsued variable in amdgpu_dma_buf_unmap().
>
> Fixes:
> drm/amdgpu: Remove amdgpu_device arg from free_sgt api
>
> Signed-off-by: Kevin Wang <kevin1.wang at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> index e83d73ec0e9d..5ec6556ebf7a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> @@ -356,10 +356,6 @@ static void amdgpu_dma_buf_unmap(struct dma_buf_attachment *attach,
> struct sg_table *sgt,
> enum dma_data_direction dir)
> {
> - struct dma_buf *dma_buf = attach->dmabuf;
> - struct drm_gem_object *obj = dma_buf->priv;
> - struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj);
> -
> if (sgt->sgl->page_link) {
> dma_unmap_sgtable(attach->dev, sgt, dir, 0);
> sg_free_table(sgt);
More information about the amd-gfx
mailing list