summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-09-08 09:40:29 -0600
committerBrian Paul <[email protected]>2015-09-10 12:23:46 -0600
commitece33f96879775401361d14cb2faeb1a2f1ea806 (patch)
tree72d9fe2958fd55548c081f2db3caa60d5b008d79 /src
parentbc75fe214d428f857155ae6737194c73ddfed55f (diff)
svga: remove useless MAX2() call
The sum of two unsigned ints is always >= 0. Found with Coverity. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_state_tss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_state_tss.c b/src/gallium/drivers/svga/svga_state_tss.c
index a13980d0e13..5991da13868 100644
--- a/src/gallium/drivers/svga/svga_state_tss.c
+++ b/src/gallium/drivers/svga/svga_state_tss.c
@@ -90,7 +90,7 @@ emit_tex_binding_unit(struct svga_context *svga,
}
else {
last_level = MIN2(sv->u.tex.last_level, sv->texture->last_level);
- min_lod = MAX2(0, (s->view_min_lod + sv->u.tex.first_level));
+ min_lod = s->view_min_lod + sv->u.tex.first_level;
min_lod = MIN2(min_lod, last_level);
max_lod = MIN2(s->view_max_lod + sv->u.tex.first_level, last_level);
}