projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de6281
)
winsys/svga: remove useless assertion
author
Brian Paul
<brianp@vmware.com>
Tue, 8 Sep 2015 15:39:40 +0000
(09:39 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 10 Sep 2015 18:23:46 +0000
(12:23 -0600)
An unsigned int is always >= 0. Found with Coverity.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/winsys/svga/drm/vmw_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/svga/drm/vmw_context.c
b/src/gallium/winsys/svga/drm/vmw_context.c
index 394795eae148fafd9b8c451f9667bdaf0122e11f..1675af4cbc83f172c09c921af673d0783bf7b1bd 100644
(file)
--- a/
src/gallium/winsys/svga/drm/vmw_context.c
+++ b/
src/gallium/winsys/svga/drm/vmw_context.c
@@
-591,7
+591,6
@@
vmw_swc_commit(struct svga_winsys_context *swc)
{
struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc);
- assert(vswc->command.reserved >= 0);
assert(vswc->command.used + vswc->command.reserved <= vswc->command.size);
vswc->command.used += vswc->command.reserved;
vswc->command.reserved = 0;