Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Ian Rogers and committed by
Daniel Borkmann
0698ac66 1e6f5dcc

+2 -2
+2 -2
tools/bpf/bpftool/skeleton/profiler.bpf.c
··· 70 70 static inline void 71 71 fexit_update_maps(u32 id, struct bpf_perf_event_value *after) 72 72 { 73 - struct bpf_perf_event_value *before, diff, *accum; 73 + struct bpf_perf_event_value *before, diff; 74 74 75 75 before = bpf_map_lookup_elem(&fentry_readings, &id); 76 76 /* only account samples with a valid fentry_reading */ ··· 95 95 { 96 96 struct bpf_perf_event_value readings[MAX_NUM_MATRICS]; 97 97 u32 cpu = bpf_get_smp_processor_id(); 98 - u32 i, one = 1, zero = 0; 98 + u32 i, zero = 0; 99 99 int err; 100 100 u64 *count; 101 101