diff options
| author | Yonghong Song <[email protected]> | 2021-11-12 20:48:33 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-11-12 22:11:46 +0000 |
| commit | 21c6ec3d5275a77348b1af0e78cbbed0ee1558d4 (patch) | |
| tree | 600349e7d24a866d8eae8cf6f7a2ac8fa0dca80e /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'introduce btf_tracing_ids' (diff) | |
| download | kernel-21c6ec3d5275a77348b1af0e78cbbed0ee1558d4.tar.gz kernel-21c6ec3d5275a77348b1af0e78cbbed0ee1558d4.zip | |
selftests/bpf: Fix an unused-but-set-variable compiler warning
When using clang to build selftests with LLVM=1 in make commandline,
I hit the following compiler warning:
xdpxceiver.c:747:6: warning: variable 'total' set but not used [-Wunused-but-set-variable]
u32 total = 0;
^
This patch fixed the issue by removing that declaration and its
assocatied unused operation.
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
