drm/amdkfd: Remove negative check of uint variable
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 09:09:27 +0000 (11:09 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 10:43:28 +0000 (12:43 +0200)
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index a5c69e96ba6f09c1b48824b317563a33d39ec53d..23a1e95f32c3b4f6315d3042aa6ced9a2f3a3489 100644 (file)
@@ -587,7 +587,7 @@ static int allocate_sdma_queue(struct device_queue_manager *dqm,
 static void deallocate_sdma_queue(struct device_queue_manager *dqm,
                                unsigned int sdma_queue_id)
 {
-       if (sdma_queue_id < 0 || sdma_queue_id >= CIK_SDMA_QUEUES)
+       if (sdma_queue_id >= CIK_SDMA_QUEUES)
                return;
        set_bit(sdma_queue_id, (unsigned long *)&dqm->sdma_bitmap);
 }