main: Remove comparison unsigned int >= 0.

Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan.

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Laura Ekstrand 2015-01-12 09:52:05 -08:00
parent c503ce1044
commit 0e6f0eea1a

View file

@ -41,7 +41,6 @@
static inline struct gl_texture_unit *
_mesa_get_tex_unit(struct gl_context *ctx, GLuint unit)
{
ASSERT(unit >= 0);
ASSERT(unit < Elements(ctx->Texture.Unit));
return &(ctx->Texture.Unit[unit]);
}