diff options
author | 2022-02-16 11:04:25 +0800 | |
---|---|---|
committer | 2022-02-16 10:38:03 -0300 | |
commit | 662a9810fcca3d9b3435187d45b759b9649c4551 (patch) | |
tree | 6006190e095ff518e314072fd6af32742b87d4c4 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | perf test: Make metric testing more robust (diff) | |
download | wireguard-linux-662a9810fcca3d9b3435187d45b759b9649c4551.tar.xz wireguard-linux-662a9810fcca3d9b3435187d45b759b9649c4551.zip |
perf top: Remove redundant 'err' variable
The variable 'err' in the perf_event__process_sample() is only used in
the only one judgment statement, it is not used in other places.
So, use the return value 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-2-tangmeng@uniontech.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions