summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-20 20:35:28 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-06-22 16:28:08 -0300
commita1f8bc95c33e953e080f72be4b95176dacb423b0 (patch)
tree7c1e259ae7e87f8052fa3b65b0c859c93a1e229e
parentc42ad5d4358230be166fc36c87bae0dd1680c570 (diff)
downloadlinux-a1f8bc95c33e953e080f72be4b95176dacb423b0.tar.gz
linux-a1f8bc95c33e953e080f72be4b95176dacb423b0.tar.bz2
linux-a1f8bc95c33e953e080f72be4b95176dacb423b0.zip
perf annotate: Remove unneeded conversion to bool
The '>' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: tools/perf/ui/browsers/annotate.c:212:30-35: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan <yanaijie@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/20200420123528.11655-1-yanaijie@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/ui/browsers/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index 9023267e5643..bd77825fd5a1 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -209,7 +209,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser)
ui_browser__mark_fused(browser,
pcnt_width + 3 + notes->widths.addr + width,
from - 1,
- to > from ? true : false);
+ to > from);
}
}