aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2015-01-22 04:09:27 -0500
committerOded Gabbay <oded.gabbay@amd.com>2015-01-22 05:43:28 -0500
commit010b82e754e20b47bfaf6202c5b696f4b2849713 (patch)
tree86142b3d1f4d541c38ac27887278102e67e29fca
parent281d1bbd34b734e4f22b30b6f3b673dda46a7470 (diff)
drm/amdkfd: Remove negative check of uint variable
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c2
1 files changed, 1 insertions, 1 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 a5c69e96ba6f..23a1e95f32c3 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -587,7 +587,7 @@ static int allocate_sdma_queue(struct device_queue_manager *dqm,
587static void deallocate_sdma_queue(struct device_queue_manager *dqm, 587static void deallocate_sdma_queue(struct device_queue_manager *dqm,
588 unsigned int sdma_queue_id) 588 unsigned int sdma_queue_id)
589{ 589{
590 if (sdma_queue_id < 0 || sdma_queue_id >= CIK_SDMA_QUEUES) 590 if (sdma_queue_id >= CIK_SDMA_QUEUES)
591 return; 591 return;
592 set_bit(sdma_queue_id, (unsigned long *)&dqm->sdma_bitmap); 592 set_bit(sdma_queue_id, (unsigned long *)&dqm->sdma_bitmap);
593} 593}