winsys/svga: remove useless assertion
authorBrian Paul <brianp@vmware.com>
Tue, 8 Sep 2015 15:39:40 +0000 (09:39 -0600)
committerBrian 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

index 394795eae148fafd9b8c451f9667bdaf0122e11f..1675af4cbc83f172c09c921af673d0783bf7b1bd 100644 (file)
@@ -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;