perf hists browser: Fold two consecutive symbol_conf.use_callchain ifs
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 1b6b678ecfb73724914a8b12d57909a4c514a9bd Gitweb: http://git.kernel.org/tip/1b6b678ecfb73724914a8b12d57909a4c514a9bd Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Mon, 18 Apr 2016 12:24:41 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 18 Apr 2016 12:26:27 -0300
perf hists browser: Fold two consecutive symbol_conf.use_callchain ifs
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Milian Wolff <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/ui/browsers/hists.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
tools/perf/ui/browsers/hists.c +2 -3
@@ -1896,11 +1896,10 @@ static int hist_browser__fprintf_entry(struct hist_browser *browser,bool first = true;int ret; -if (symbol_conf.use_callchain) +if (symbol_conf.use_callchain) { folded_sign =hist_entry__folded (he); - -if (symbol_conf.use_callchain) printed +=fprintf (fp,"%c " , folded_sign); + }hists__for_each_format (browser->hists, fmt) {if (perf_hpp__should_skip (fmt, he->hists))