From b6f79815eea63fba33cf765d33fc8059f303de76 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 24 Mar 2019 02:16:21 +0300 Subject: [PATCH] glx: remove a noop assert (index is unsigned) Fixes "Pointless comparison of unsigned value to zero." Signed-off-by: Konstantin Kharlamov --- glx/vndservermapping.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glx/vndservermapping.c b/glx/vndservermapping.c index 04788ffbd..e5b9e6b2a 100644 --- a/glx/vndservermapping.c +++ b/glx/vndservermapping.c @@ -131,7 +131,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);