Fixes "Pointless comparison of unsigned value to zero."

Signed-off-by: Konstantin Kharlamov <[email protected]>
---
 glx/vndservermapping.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/glx/vndservermapping.c b/glx/vndservermapping.c
index fd3be92d9..143d7bbdd 100644
--- a/glx/vndservermapping.c
+++ b/glx/vndservermapping.c
@@ -127,7 +127,6 @@ GlxContextTagInfo *GlxAllocContextTag(ClientPtr client, 
GlxServerVendor *vendor)
         cl->contextTagCount = newSize;
     }
 
-    assert(index >= 0);
     assert(index < cl->contextTagCount);
     memset(&cl->contextTags[index], 0, sizeof(GlxContextTagInfo));
     cl->contextTags[index].tag = (GLXContextTag) (index + 1);
-- 
2.21.0

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to