Commit 0974d2c9 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

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: default avatarJiri Olsa <jolsa@kernel.org>
Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1444134312-29136-2-git-send-email-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 712df65c
...@@ -1917,8 +1917,6 @@ static int __setup_output_field(void) ...@@ -1917,8 +1917,6 @@ static int __setup_output_field(void)
if (field_order == NULL) if (field_order == NULL)
return 0; return 0;
reset_dimensions();
strp = str = strdup(field_order); strp = str = strdup(field_order);
if (str == NULL) { if (str == NULL) {
error("Not enough memory to setup output fields"); error("Not enough memory to setup output fields");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment