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
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 @@
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 @@
// 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;
}