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

Tapani Pälli tapani.palli at intel.com
Sun Nov 29 21:47:43 PST 2015


Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 11/29/2015 10:54 AM, Vinson Lee wrote:
> 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
>


More information about the Piglit mailing list