From 90599e6177f20696bf24d90af743a6f1174a979f Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 5 Aug 2021 16:42:09 -0300 Subject: [PATCH] dwarf_loader: Remove unused 'dcu' argument from finalize_cu_immediately() Not used at all, ditch it. Signed-off-by: Arnaldo Carvalho de Melo --- dwarf_loader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dwarf_loader.c b/dwarf_loader.c index c585fc0..7a50e8a 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -2480,7 +2480,6 @@ static int cu__finalize(struct cu *cu, struct conf_load *conf) } static int finalize_cu_immediately(struct cus *cus, struct cu *cu, - struct dwarf_cu *dcu, struct conf_load *conf) { int lsk = cu__finalize(cu, conf); @@ -2677,7 +2676,7 @@ static int dwarf_cus__create_and_process_cu(struct dwarf_cus *dcus, Dwarf_Die *c cu->dfops = &dwarf__ops; if (die__process_and_recode(cu_die, cu, dcus->conf) != 0 || - finalize_cu_immediately(dcus->cus, cu, dcu, dcus->conf) == LSK__STOP_LOADING) + finalize_cu_immediately(dcus->cus, cu, dcus->conf) == LSK__STOP_LOADING) return DWARF_CB_ABORT; return DWARF_CB_OK; @@ -2860,7 +2859,7 @@ static int cus__merge_and_process_cu(struct cus *cus, struct conf_load *conf, if (cu__resolve_func_ret_types(cu) != LSK__KEEPIT) goto out_abort; - if (finalize_cu_immediately(cus, cu, dcu, conf) + if (finalize_cu_immediately(cus, cu, conf) == LSK__STOP_LOADING) goto out_abort;