diff options
author | Laura Ekstrand <[email protected]> | 2015-01-12 09:52:05 -0800 |
---|---|---|
committer | Laura Ekstrand <[email protected]> | 2015-01-12 10:23:17 -0800 |
commit | 0e6f0eea1aae95213b359662495142fc7b88c34f (patch) | |
tree | 0391941a2d638591a4993ec4a95aaee61d1a3b9b /src/mesa | |
parent | c503ce104419a7ba39db6a0989a15d888f4b0d36 (diff) |
main: Remove comparison unsigned int >= 0.
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstate.h | 1 |
1 files changed, 0 insertions, 1 deletions
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]); } |