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 f84074e..80887b8 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 b98dd67..4e3cee4 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 ce9cb43..cd7cc7d 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)