diff options
| author | Yang Ruibin <[email protected]> | 2024-08-21 10:14:56 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-08-21 14:39:51 +0000 |
| commit | ce66d7c703d32851ceb50511e634712049f0c1c1 (patch) | |
| tree | aeaa663ce27e4674a18bc237ea54d1cb71f9863c /tools/perf/ui/browsers/annotate-data.c | |
| parent | perf annotate-data: Fix percpu pointer check (diff) | |
| download | kernel-ce66d7c703d32851ceb50511e634712049f0c1c1.tar.gz kernel-ce66d7c703d32851ceb50511e634712049f0c1c1.zip | |
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/ui/browsers/annotate-data.c')
0 files changed, 0 insertions, 0 deletions
