perf annotate: Remove redundant 'ret' variable
authortangmeng <tangmeng@uniontech.com>
Wed, 16 Feb 2022 03:04:24 +0000 (11:04 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Feb 2022 13:38:55 +0000 (10:38 -0300)
commit69c31f9647a824bcc8cb3fc3441a32dffd0667ec
tree989755cc8468a1e3fa763c725d01a84b3a443909
parent662a9810fcca3d9b3435187d45b759b9649c4551
perf annotate: Remove redundant 'ret' variable

Return the result from hist_entry_iter__add() directly instead of taking
this in another redundant variable.

Signed-off-by: tangmeng <tangmeng@uniontech.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/20220216030425.27779-1-tangmeng@uniontech.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-annotate.c