OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
4f8ec1f
..
a320e38
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);