Commit 9921167d authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu:cleanup unused stack var

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f59548c8
...@@ -684,7 +684,6 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev) ...@@ -684,7 +684,6 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev)
{ {
int r = 0; int r = 0;
int i; int i;
u64 gpu_addr;
u64 vram_size = adev->mc.visible_vram_size; u64 vram_size = adev->mc.visible_vram_size;
u64 offset = adev->fw_vram_usage.start_offset; u64 offset = adev->fw_vram_usage.start_offset;
u64 size = adev->fw_vram_usage.size; u64 size = adev->fw_vram_usage.size;
...@@ -728,7 +727,7 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev) ...@@ -728,7 +727,7 @@ int amdgpu_fw_reserve_vram_init(struct amdgpu_device *adev)
AMDGPU_GEM_DOMAIN_VRAM, AMDGPU_GEM_DOMAIN_VRAM,
adev->fw_vram_usage.start_offset, adev->fw_vram_usage.start_offset,
(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) if (r)
goto error_pin; goto error_pin;
r = amdgpu_bo_kmap(adev->fw_vram_usage.reserved_bo, r = amdgpu_bo_kmap(adev->fw_vram_usage.reserved_bo,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment