aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2019-07-08 14:57:21 +0200
committerDaniel Borkmann <[email protected]>2019-07-08 17:18:03 +0200
commitbef8e2639242e7f7214f1ab3b37ace1415a4f750 (patch)
tree8c8a032b8f5586f1a661847870ca6e60d5c9cf78 /drivers/fpga/fpga-bridge.c
parent6705fea0c799a4efb9a9ce2968a2f7a570e33dc2 (diff)
bpf: avoid unused variable warning in tcp_bpf_rtt()
When CONFIG_BPF is disabled, we get a warning for an unused variable: In file included from drivers/target/target_core_device.c:26: include/net/tcp.h:2226:19: error: unused variable 'tp' [-Werror,-Wunused-variable] struct tcp_sock *tp = tcp_sk(sk); The variable is only used in one place, so it can be replaced with its value there to avoid the warning. Fixes: 23729ff23186 ("bpf: add BPF_CGROUP_SOCK_OPS callback that is executed on every RTT") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions