mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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>
This commit is contained in:
parent
281d1bbd34
commit
010b82e754
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue