OSDN Git Service

main: Remove comparison unsigned int >= 0.
authorLaura Ekstrand <laura@jlekstrand.net>
Mon, 12 Jan 2015 17:52:05 +0000 (09:52 -0800)
committerLaura Ekstrand <laura@jlekstrand.net>
Mon, 12 Jan 2015 18:23:17 +0000 (10:23 -0800)
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/texstate.h

index 2514d10..abc07ea 100644 (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]);
 }