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

Vinson Lee vlee at freedesktop.org
Thu May 18 22:40:26 UTC 2017


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));
-- 
2.9.3



More information about the Piglit mailing list