loader: Small cleanup of unnecessary func call
authorMark Young <marky@lunarg.com>
Tue, 4 Oct 2016 21:19:30 +0000 (15:19 -0600)
committerMark Young <marky@lunarg.com>
Wed, 5 Oct 2016 14:39:51 +0000 (08:39 -0600)
We had a function that was called only from one other place and
it wasn't necessary.  So removed the extra function call.

Change-Id: I3579215dc1d2f46b8c30b4ec3cb416c390fcf597

loader/loader.c

index 1c6591f..f2ebb58 100644 (file)
@@ -3371,17 +3371,6 @@ static bool loader_check_layer_list_for_address(
     return false;
 }
 
-static bool
-loader_check_layers_for_address(const struct loader_instance *const inst,
-                                const char *funcName) {
-    if (loader_check_layer_list_for_address(&inst->instance_layer_list,
-                                            funcName)) {
-        return true;
-    }
-
-    return false;
-}
-
 static void loader_free_dev_ext_table(struct loader_instance *inst) {
     for (uint32_t i = 0; i < MAX_NUM_DEV_EXTS; i++) {
         loader_instance_heap_free(inst, inst->disp_hash[i].func_name);
@@ -3514,7 +3503,7 @@ void *loader_dev_ext_gpa(struct loader_instance *inst, const char *funcName) {
 
     // Check if funcName is supported in either ICDs or a layer library
     if (!loader_check_icds_for_address(inst, funcName) &&
-        !loader_check_layers_for_address(inst, funcName)) {
+        !loader_check_layer_list_for_address(&inst->instance_layer_list, funcName)) {
         // if support found in layers continue on
         return NULL;
     }