From fae99919eae60d188e0c1483a1caeb2044b5afee Mon Sep 17 00:00:00 2001 From: Mark Young Date: Tue, 4 Oct 2016 15:19:30 -0600 Subject: [PATCH] loader: Small cleanup of unnecessary func call 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 | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/loader/loader.c b/loader/loader.c index 1c6591f..f2ebb58 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -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; } -- 2.7.4