]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amdgpu:cleanup unused stack var
authorMonk Liu <Monk.Liu@amd.com>
Tue, 14 Nov 2017 08:50:31 +0000 (16:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:50 +0000 (12:47 -0500)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index fc34f745f05888dbf613f2ea117e1d02a70f7718..29c81c3874201c5efe21e3a8c39e0c499f341779 100644 (file)
@@ -684,7 +684,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;
@@ -728,7 +727,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,