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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user