projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef70a1
)
selftests/bpf: delete unused variables in test_sysctl
author
Andrii Nakryiko
<andriin@fb.com>
Wed, 25 Sep 2019 18:36:14 +0000
(11:36 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Wed, 25 Sep 2019 20:16:17 +0000
(22:16 +0200)
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>
tools/testing/selftests/bpf/test_sysctl.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/test_sysctl.c
b/tools/testing/selftests/bpf/test_sysctl.c
index 4f8ec1f10a8085d9cb6d34c38a68f16ed47174e2..a320e3844b17f18afda20da8724af83ca32f9ae2 100644
(file)
--- 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);