diff options
author | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-22 11:09:27 +0200 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2015-01-22 12:43:28 +0200 |
commit | 010b82e754e20b47bfaf6202c5b696f4b2849713 (patch) | |
tree | 86142b3d1f4d541c38ac27887278102e67e29fca /drivers/gpu | |
parent | 281d1bbd34b734e4f22b30b6f3b673dda46a7470 (diff) | |
download | op-kernel-dev-010b82e754e20b47bfaf6202c5b696f4b2849713.zip op-kernel-dev-010b82e754e20b47bfaf6202c5b696f4b2849713.tar.gz |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 |
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 a5c69e9..23a1e95 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); } |