Skip to content

Commit 0698ac6

Browse files
captain5050borkmann
authored andcommitted
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
1 parent 1e6f5dc commit 0698ac6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/bpf/bpftool/skeleton/profiler.bpf.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int BPF_PROG(fentry_XXX)
7070
static inline void
7171
fexit_update_maps(u32 id, struct bpf_perf_event_value *after)
7272
{
73-
struct bpf_perf_event_value *before, diff, *accum;
73+
struct bpf_perf_event_value *before, diff;
7474

7575
before = bpf_map_lookup_elem(&fentry_readings, &id);
7676
/* only account samples with a valid fentry_reading */
@@ -95,7 +95,7 @@ int BPF_PROG(fexit_XXX)
9595
{
9696
struct bpf_perf_event_value readings[MAX_NUM_MATRICS];
9797
u32 cpu = bpf_get_smp_processor_id();
98-
u32 i, one = 1, zero = 0;
98+
u32 i, zero = 0;
9999
int err;
100100
u64 *count;
101101

0 commit comments

Comments
 (0)