提交 a1f8bc95 编写于 作者: J Jason Yan 提交者: Arnaldo Carvalho de Melo

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: NJason 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.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 c42ad5d4
...@@ -209,7 +209,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser) ...@@ -209,7 +209,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser)
ui_browser__mark_fused(browser, ui_browser__mark_fused(browser,
pcnt_width + 3 + notes->widths.addr + width, pcnt_width + 3 + notes->widths.addr + width,
from - 1, from - 1,
to > from ? true : false); to > from);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册