summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-09-25 21:36:14 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2019-09-25 23:16:17 +0300
commitd778c30a056ac352d1c0c58b5850e0fcc5655a58 (patch)
tree21231f5203cd33872cb3b1d94536a5e3e1b86ec9 /tools
parentaef70a1f44c0b570e6345c02c2d240471859f0a4 (diff)
downloadlinux-d778c30a056ac352d1c0c58b5850e0fcc5655a58.tar.xz
selftests/bpf: delete unused variables in test_sysctl
Remove no longer used variables and avoid compiler warnings. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/test_sysctl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_sysctl.c b/tools/testing/selftests/bpf/test_sysctl.c
index 4f8ec1f10a80..a320e3844b17 100644
--- a/tools/testing/selftests/bpf/test_sysctl.c
+++ b/tools/testing/selftests/bpf/test_sysctl.c
@@ -1385,7 +1385,6 @@ static int fixup_sysctl_value(const char *buf, size_t buf_len,
uint8_t raw[sizeof(uint64_t)];
uint64_t num;
} value = {};
- uint8_t c, i;
if (buf_len > sizeof(value)) {
log_err("Value is too big (%zd) to use in fixup", buf_len);