Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 010b82e7 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

drm/amdkfd: Remove negative check of uint variable

parent 281d1bbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}