summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorMasami Hiramatsu2015-11-06 09:30:03 +0100
committerArnaldo Carvalho de Melo2015-11-06 14:47:33 +0100
commit0a62f6869f2768687af2c94d97f3b2fcf5b73367 (patch)
tree3c5dee18c74a0d40c7edf0d67d862cf2c88cd366 /tools/lib/bpf/libbpf.c
parentperf annotate: Inform the user about objdump failures in --stdio (diff)
downloadkernel-qcow2-linux-0a62f6869f2768687af2c94d97f3b2fcf5b73367.tar.gz
kernel-qcow2-linux-0a62f6869f2768687af2c94d97f3b2fcf5b73367.tar.xz
kernel-qcow2-linux-0a62f6869f2768687af2c94d97f3b2fcf5b73367.zip
perf probe: Cleanup find_perf_probe_point_from_map to reduce redundancy
In find_perf_probe_point_from_map(), the 'ret' variable is initialized with -ENOENT but overwritten by the return code of kernel_get_symbol_address_by_name(), and after that it is re-initialized with -ENOENT again. Setting ret=-ENOENT twice looks a bit redundant. This avoids the overwriting and just returns -ENOENT if some error happens to simplify the code. Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Cc: Zefan Li <lizefan@huawei.com> Link: http://lkml.kernel.org/n/tip-ufp1zgbktzmttcputozneomd@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions