diff options
| author | Yang Ruibin <[email protected]> | 2024-08-21 06:14:56 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-08-21 11:39:51 -0300 |
| commit | ce66d7c703d32851ceb50511e634712049f0c1c1 (patch) | |
| tree | aeaa663ce27e4674a18bc237ea54d1cb71f9863c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 4d6d6e0f61e2267103e9b013d2a82d04ff278127 (diff) | |
perf bpf: Remove redundant check that map is NULL
The check that map is NULL is already done in the bpf_map__fd(map) and
returns an errno, which does not run further checks.
In addition, even if the check for map is run, the return is a pointer,
which is not consistent with the err_number returned by bpf_map__fd(map).
Signed-off-by: Yang Ruibin <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions