diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index bc75596f9e79ed1b5d0b747df40e933e52deb4a0..d2b6983b1779d747eaf0db28628a8f29ab1222dc 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -700,10 +700,7 @@ struct perf_config_set *perf_config_set__new(void) if (set) { INIT_LIST_HEAD(&set->sections); - if (perf_config_set__init(set) < 0) { - perf_config_set__delete(set); - set = NULL; - } + perf_config_set__init(set); } return set;