diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2018-09-07 14:50:05 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-09-11 14:54:52 -0700 |
commit | 1edb6e035eb72a17462ba275fe2db36c37a62909 (patch) | |
tree | 3f33396f58fc85d214b210d4700b5a125c002ac7 /kernel | |
parent | 9d0b3c1f1451d1b9a33de3c70ae3d50ccd77db1a (diff) | |
download | linux-1edb6e035eb72a17462ba275fe2db36c37a62909.tar.bz2 |
net/core/filter: fix unused-variable warning
Building with CONFIG_INET=n will show the warning below:
net/core/filter.c: In function ‘____bpf_getsockopt’:
net/core/filter.c:4048:19: warning: unused variable ‘tp’ [-Wunused-variable]
struct tcp_sock *tp;
^~
net/core/filter.c:4046:31: warning: unused variable ‘icsk’ [-Wunused-variable]
struct inet_connection_sock *icsk;
^~~~
Move the variable declarations inside the {} block where they are used.
Fixes: 1e215300f138 ("bpf: add TCP_SAVE_SYN/TCP_SAVED_SYN options for bpf_(set|get)sockopt")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions