[5/9] glx: remove a noop assert (index is unsigned)

Submitted by Konstantin Kharlamov on March 23, 2019, 11:51 p.m.

Details

Message ID 20190323235203.30143-6-Hi-Angel@yandex.ru
State New
Headers show
Series "Fix some of LGTM warnings" ( rev: 2 1 ) in X.org

Not browsing as part of any series.

Commit Message

Konstantin Kharlamov March 23, 2019, 11:51 p.m.
Fixes "Pointless comparison of unsigned value to zero."

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
---
 glx/vndservermapping.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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);