[Piglit] [PATCH] read_depth_gles3: Remove dead code.

Vinson Lee vlee at freedesktop.org
Sun Nov 29 00:54:39 PST 2015


Fixes Coverity "logically dead code" defect.

Signed-off-by: Vinson Lee <vlee at 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



More information about the Piglit mailing list