Commit 6fa9c3e7 authored by Zou Wei's avatar Zou Wei Committed by Arnaldo Carvalho de Melo

perf report: Fix warning assignment of 0/1 to bool variable

Fixes coccicheck warning:

  tools/perf/builtin-report.c:1403:2-34: WARNING: Assignment of 0/1 to bool variable
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/1587904683-3510-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8284bbea
...@@ -1413,7 +1413,7 @@ int cmd_report(int argc, const char **argv) ...@@ -1413,7 +1413,7 @@ int cmd_report(int argc, const char **argv)
} }
if (branch_call_mode) { if (branch_call_mode) {
callchain_param.key = CCKEY_ADDRESS; callchain_param.key = CCKEY_ADDRESS;
callchain_param.branch_callstack = 1; callchain_param.branch_callstack = true;
symbol_conf.use_callchain = true; symbol_conf.use_callchain = true;
callchain_register_param(&callchain_param); callchain_register_param(&callchain_param);
if (sort_order == NULL) if (sort_order == NULL)
......
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