[PATCH 06/10] drm/amdgpu:cleanup unused stack var
Christian König
ckoenig.leichtzumerken at gmail.com
Tue Nov 14 11:53:03 UTC 2017
Am 14.11.2017 um 10:07 schrieb Monk Liu:
> Change-Id: I5d3ea5facc23bcc94806a098ae9455ce1564fa09
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 9471f47..c13b493 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -681,7 +681,6 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev)
> {
> int r = 0;
> int i;
> - u64 gpu_addr;
> u64 vram_size = adev->mc.visible_vram_size;
> u64 offset = adev->fw_vram_usage.start_offset;
> u64 size = adev->fw_vram_usage.size;
> @@ -725,7 +724,7 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev)
> AMDGPU_GEM_DOMAIN_VRAM,
> adev->fw_vram_usage.start_offset,
> (adev->fw_vram_usage.start_offset +
> - adev->fw_vram_usage.size), &gpu_addr);
> + adev->fw_vram_usage.size), NULL);
> if (r)
> goto error_pin;
> r = amdgpu_bo_kmap(adev->fw_vram_usage.reserved_bo,
More information about the amd-gfx
mailing list