projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281d1bb
)
drm/amdkfd: Remove negative check of uint variable
author
Oded Gabbay
<
[email protected]
>
Thu, 22 Jan 2015 09:09:27 +0000
(11:09 +0200)
committer
Oded Gabbay
<
[email protected]
>
Thu, 22 Jan 2015 10:43:28 +0000
(12:43 +0200)
Signed-off-by: Oded Gabbay <
[email protected]
>
Reviewed-by: Jammy Zhou <
[email protected]
>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
patch
|
blob
|
history
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 a5c69e96ba6f09c1b48824b317563a33d39ec53d..23a1e95f32c3b4f6315d3042aa6ced9a2f3a3489 100644
(file)
--- 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);
}