summaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2020-10-27 16:36:46 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2020-10-29 15:23:18 +0100
commit0698ac66e01019528f0db4191ae3aaf9978e67da (patch)
tree1bed83f9226c4cd5c078dd6ee8208413a23f7b4a /tools/bpf
parent1e6f5dcc1b9ec9068f5d38331cec38b35498edf5 (diff)
downloadlinux-0698ac66e01019528f0db4191ae3aaf9978e67da.tar.gz
linux-0698ac66e01019528f0db4191ae3aaf9978e67da.tar.bz2
linux-0698ac66e01019528f0db4191ae3aaf9978e67da.zip
tools, bpftool: Remove two unused variables.
Avoid an unused variable warning. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201027233646.3434896-2-irogers@google.com
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/bpftool/skeleton/profiler.bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/skeleton/profiler.bpf.c b/tools/bpf/bpftool/skeleton/profiler.bpf.c
index 4e3512f700c0..ce5b65e07ab1 100644
--- a/tools/bpf/bpftool/skeleton/profiler.bpf.c
+++ b/tools/bpf/bpftool/skeleton/profiler.bpf.c
@@ -70,7 +70,7 @@ int BPF_PROG(fentry_XXX)
static inline void
fexit_update_maps(u32 id, struct bpf_perf_event_value *after)
{
- struct bpf_perf_event_value *before, diff, *accum;
+ struct bpf_perf_event_value *before, diff;
before = bpf_map_lookup_elem(&fentry_readings, &id);
/* only account samples with a valid fentry_reading */
@@ -95,7 +95,7 @@ int BPF_PROG(fexit_XXX)
{
struct bpf_perf_event_value readings[MAX_NUM_MATRICS];
u32 cpu = bpf_get_smp_processor_id();
- u32 i, one = 1, zero = 0;
+ u32 i, zero = 0;
int err;
u64 *count;