perf hists browser: Fold two consecutive symbol_conf.use_callchain ifs
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Apr 2016 15:24:41 +0000 (12:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Apr 2016 15:26:27 +0000 (12:26 -0300)
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-u701i6qpecgm9jiat52i8l98@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c

index e70df2e54d6676087237bb3e89231e67eb1a2a9a..6a4681932ba57ed8c519a62cfbf2827d64f26bf7 100644 (file)
@@ -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))