From: Laura Ekstrand Date: Mon, 12 Jan 2015 17:52:05 +0000 (-0800) Subject: main: Remove comparison unsigned int >= 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e6f0eea1aae95213b359662495142fc7b88c34f;p=mesa.git main: Remove comparison unsigned int >= 0. Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan. Reviewed-by: Matt Turner --- diff --git a/src/mesa/main/texstate.h b/src/mesa/main/texstate.h index 2514d104b62..abc07eafb4e 100644 --- a/src/mesa/main/texstate.h +++ b/src/mesa/main/texstate.h @@ -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]); }