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:
parent
bad94e88ce
commit
b6f79815ee
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue