From: Oded Gabbay Date: Thu, 22 Jan 2015 09:09:27 +0000 (+0200) Subject: drm/amdkfd: Remove negative check of uint variable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=010b82e754e20b47bfaf6202c5b696f4b2849713;p=linux-beck.git drm/amdkfd: Remove negative check of uint variable Signed-off-by: Oded Gabbay Reviewed-by: Jammy Zhou --- 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, 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); }