glx: remove a noop assert (index is unsigned)

Fixes "Pointless comparison of unsigned value to zero."

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
Konstantin Kharlamov 2019-03-24 02:16:21 +03:00 committed by Alan Coopersmith
parent bad94e88ce
commit b6f79815ee

View File

@ -131,7 +131,6 @@ GlxContextTagInfo *GlxAllocContextTag(ClientPtr client, GlxServerVendor *vendor)
cl->contextTagCount = newSize; cl->contextTagCount = newSize;
} }
assert(index >= 0);
assert(index < cl->contextTagCount); assert(index < cl->contextTagCount);
memset(&cl->contextTags[index], 0, sizeof(GlxContextTagInfo)); memset(&cl->contextTags[index], 0, sizeof(GlxContextTagInfo));
cl->contextTags[index].tag = (GLXContextTag) (index + 1); cl->contextTags[index].tag = (GLXContextTag) (index + 1);