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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 1e6f5dc commit 0698ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)