Fixes Coverity "logically dead code" defect.

Signed-off-by: Vinson Lee <v...@freedesktop.org>
---
 tests/spec/gles-3.0/read-depth.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/spec/gles-3.0/read-depth.c b/tests/spec/gles-3.0/read-depth.c
index 733ddfe..63f97ac 100644
--- a/tests/spec/gles-3.0/read-depth.c
+++ b/tests/spec/gles-3.0/read-depth.c
@@ -120,7 +120,6 @@ read_depth(GLenum type, float expect)
 enum piglit_result
 piglit_display(void)
 {
-       GLboolean pass = true;
        const float step = 0.1;
        unsigned j;
        float i;
@@ -154,7 +153,7 @@ piglit_display(void)
                }
                glDeleteFramebuffers(1, &fbo);
        }
-       return pass ? PIGLIT_PASS : PIGLIT_FAIL;
+       return PIGLIT_PASS;
 }
 
 void
-- 
2.6.2

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to