[Piglit] [PATCH] cl-api-get-platform-ids: Remove duplicate piglit_cl_check_error.

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri May 19 00:36:33 UTC 2017


Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

On 05/19/2017 12:40 AM, Vinson Lee wrote:
> Fix Coverity unchecked return value defect.
> 
> CID: 1164878
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/cl/api/get-platform-ids.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/tests/cl/api/get-platform-ids.c b/tests/cl/api/get-platform-ids.c
> index f94ab0c8dc57..d160bd6eb8e3 100644
> --- a/tests/cl/api/get-platform-ids.c
> +++ b/tests/cl/api/get-platform-ids.c
> @@ -60,7 +60,6 @@ piglit_cl_test(const int argc,
>   	/* get number of platforms */
>   	errNo = clGetPlatformIDs(0, NULL, &num_platforms);
>   	if(!piglit_cl_check_error(errNo, CL_SUCCESS)) {
> -		piglit_cl_check_error(errNo, CL_SUCCESS);
>   		fprintf(stderr,
>   		        "Failed (error code: %s): Get size of platform list.\n",
>   		        piglit_cl_get_error_name(errNo));
> 


More information about the Piglit mailing list