From 6fd4377a0db1e8d34d36e167a1ae3cd37fed1cde 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 'dcus' argument from cu__finalize() Not used at all, ditch it. Signed-off-by: Arnaldo Carvalho de Melo --- dwarf_loader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dwarf_loader.c b/dwarf_loader.c index 30a4e25..c585fc0 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -2470,7 +2470,7 @@ static int class_member__cache_byte_size(struct tag *tag, struct cu *cu, return 0; } -static int cu__finalize(struct cu *cu, struct dwarf_cu *dcu, struct conf_load *conf) +static int cu__finalize(struct cu *cu, struct conf_load *conf) { cu__for_all_tags(cu, class_member__cache_byte_size, conf); if (conf && conf->steal) { @@ -2483,7 +2483,7 @@ static int finalize_cu_immediately(struct cus *cus, struct cu *cu, struct dwarf_cu *dcu, struct conf_load *conf) { - int lsk = cu__finalize(cu, dcu, conf); + int lsk = cu__finalize(cu, conf); switch (lsk) { case LSK__DELETE: cu__delete(cu); @@ -2895,7 +2895,7 @@ static int cus__load_module(struct cus *cus, struct conf_load *conf, } if (type_cu != NULL) { - type_lsk = cu__finalize(type_cu, &type_dcu, conf); + type_lsk = cu__finalize(type_cu, conf); if (type_lsk == LSK__KEEPIT) { cus__add(cus, type_cu); }