projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c503ce1
)
main: Remove comparison unsigned int >= 0.
author
Laura Ekstrand
<laura@jlekstrand.net>
Mon, 12 Jan 2015 17:52:05 +0000
(09:52 -0800)
committer
Laura 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.h
b/src/mesa/main/texstate.h
index
2514d10
..
abc07ea
100644
(file)
--- 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]);
}