From: Brian Paul Date: Tue, 8 Sep 2015 15:39:40 +0000 (-0600) Subject: winsys/svga: remove useless assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc75fe214d428f857155ae6737194c73ddfed55f;p=mesa.git winsys/svga: remove useless assertion An unsigned int is always >= 0. Found with Coverity. Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/winsys/svga/drm/vmw_context.c b/src/gallium/winsys/svga/drm/vmw_context.c index 394795eae14..1675af4cbc8 100644 --- 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;