drm/amdkfd: Remove unused variable
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Dec 2019 07:01:24 +0000 (02:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:54:50 +0000 (11:54 -0500)
dqm->pipeline_mem wasn't used anywhere.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: shaoyunl <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h

index f7f6df40875e5b430df7fe9e581d6d9776f60490..558c0ad81848178df3d375fa3d6c090622daea96 100644 (file)
@@ -930,7 +930,6 @@ static void uninitialize(struct device_queue_manager *dqm)
        for (i = 0 ; i < KFD_MQD_TYPE_MAX ; i++)
                kfree(dqm->mqd_mgrs[i]);
        mutex_destroy(&dqm->lock_hidden);
-       kfd_gtt_sa_free(dqm->dev, dqm->pipeline_mem);
 }
 
 static int start_nocpsch(struct device_queue_manager *dqm)
index a8c37e6da02785553839c9b9963fccf99ffa4c62..8991120c4fa2d8a2f20f23b6e9e0ede27e2f862a 100644 (file)
@@ -190,7 +190,6 @@ struct device_queue_manager {
        /* the pasid mapping for each kfd vmid */
        uint16_t                vmid_pasid[VMID_NUM];
        uint64_t                pipelines_addr;
-       struct kfd_mem_obj      *pipeline_mem;
        uint64_t                fence_gpu_addr;
        unsigned int            *fence_addr;
        struct kfd_mem_obj      *fence_mem;