aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-10-08 21:53:00 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-10-10 15:49:42 -0400
commitae5c59a83b84b46aeabde95495a50dfec101d7d6 (patch)
tree34baa3f56c4a3640443bb2cd4e69373bdcdca193
parent14b284832e7dea6f54f0adfd7bed105548b94e57 (diff)
drm/amdkfd: Remove set but not used variable 'preempt_all_queues'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c: In function 'destroy_queue_cpsch': drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c:1366:7: warning: variable 'preempt_all_queues' set but not used [-Wunused-but-set-variable] It never used since introduct in commit 992839ad64f2 ("drm/amdkfd: Add static user-mode queues support") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
index 3bc0651d3bcc..a3b933967171 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -1364,9 +1364,6 @@ static int destroy_queue_cpsch(struct device_queue_manager *dqm,
1364{ 1364{
1365 int retval; 1365 int retval;
1366 struct mqd_manager *mqd_mgr; 1366 struct mqd_manager *mqd_mgr;
1367 bool preempt_all_queues;
1368
1369 preempt_all_queues = false;
1370 1367
1371 retval = 0; 1368 retval = 0;
1372 1369