OSDN Git Service

perf callchain: Remove unneeded 'result' variable
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 23 Aug 2022 07:56:05 +0000 (07:56 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:21 +0000 (08:55 -0300)
commit016f2f9821bd5d056d454aefa603f8b4f7d0e0f0
tree8a1a4736f0989f373b433cc00a9f21084e355019
parentcf874a0165e4a6ea906db9e735d52ee50fdf760b
perf callchain: Remove unneeded 'result' variable

Return the value scnprintf() directly instead of storing it in a
redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Cc: Alexandre Truong <alexandre.truong@arm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c