From 0e6f0eea1aae95213b359662495142fc7b88c34f Mon Sep 17 00:00:00 2001 From: Laura Ekstrand Date: Mon, 12 Jan 2015 09:52:05 -0800 Subject: [PATCH] main: Remove comparison unsigned int >= 0. Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan. Reviewed-by: Matt Turner --- src/mesa/main/texstate.h | 1 - 1 file changed, 1 deletion(-) 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]); } -- 2.30.2