Skip to content

Commit a1f8bc9

Browse files
JasonYanHwacmel
authored andcommitted
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>
1 parent c42ad5d commit a1f8bc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/perf/ui/browsers/annotate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser)
209209
ui_browser__mark_fused(browser,
210210
pcnt_width + 3 + notes->widths.addr + width,
211211
from - 1,
212-
to > from ? true : false);
212+
to > from);
213213
}
214214
}
215215

0 commit comments

Comments
 (0)