From: Jiri Olsa Date: Tue, 6 Oct 2015 12:25:10 +0000 (+0200) Subject: perf tools: Get rid of superfluos call to reset_dimensions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0974d2c9719a4c74fea0f6886b9922b100b903a6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf tools: Get rid of superfluos call to reset_dimensions There's no need to call reset_dimensions within __setup_output_field function. It's already called in its caller setup_sorting right before perf_hpp__init, which will be changed in following patch to respect taken dimension. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: David Ahern Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1444134312-29136-2-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index ee94b728fca4..8521e3c89b8d 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -1917,8 +1917,6 @@ static int __setup_output_field(void) if (field_order == NULL) return 0; - reset_dimensions(); - strp = str = strdup(field_order); if (str == NULL) { error("Not enough memory to setup output fields");