diff options
| author | tangmeng <[email protected]> | 2022-02-16 03:04:25 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-02-16 13:38:03 +0000 |
| commit | 662a9810fcca3d9b3435187d45b759b9649c4551 (patch) | |
| tree | 6006190e095ff518e314072fd6af32742b87d4c4 /tools/perf/builtin-annotate.c | |
| parent | perf test: Make metric testing more robust (diff) | |
| download | kernel-662a9810fcca3d9b3435187d45b759b9649c4551.tar.gz kernel-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 <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
