Static analysis fixes.
authorGrzegorz Wawiorko <grzegorz.wawiorko@intel.com>
Thu, 10 Aug 2017 13:07:04 +0000 (15:07 +0200)
committerKedar Patil <kepatil@nvidia.com>
Tue, 21 Nov 2017 15:40:25 +0000 (21:10 +0530)
test/driver_stub/cl.c
test/loader_test/test_clgl.c
test/platform/icd_test_log.c

index f84074e4a6bcf7df2412c2283a73c12f2b0903d3..80887b82c71b4f770c05c62a0e515b76ebd7a446 100644 (file)
@@ -179,7 +179,7 @@ clGetDeviceIDs(cl_platform_id   platform,
     else {
         cl_device_id obj = (cl_device_id) malloc(sizeof(cl_device_id));
         obj->dispatch = dispatchTable;
-        *devices = obj;
+        devices = obj;
     }
     if (num_devices) {
         *num_devices = 1;
index b98dd6790a3aba527499f3c8cf2a0f148dd55edf..4e3cee408683db06f7524bf4dcae366392d80811 100644 (file)
@@ -154,6 +154,8 @@ int test_clGetGLObjectInfo(const struct clGetGLObjectInfo_st* data)
                                 data->gl_object_name);
 
     test_icd_app_log("Value returned: %p\n", ret_val);
+    
+    return ret_val;
 
 }
 
index ce9cb43045cba9c1215e2e8020a4a9d6956a2f72..cd7cc7d741d76bce9704ab70c07f95307028ea3d 100644 (file)
@@ -18,6 +18,8 @@ int test_icd_initialize_app_log(void)
                printf("Unable to open file %s\n", APP_LOG_FILE);
         return -1;
     }
+    
+    return 0;
 }
 
 void test_icd_close_app_log(void)
@@ -40,6 +42,9 @@ int test_icd_initialize_stub_log(void)
                printf("Unable to open file %s\n", STUB_LOG_FILE);
         return -1;
     }
+    
+    return 0;
+
 }
 
 void test_icd_close_stub_log(void)