diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-23 20:50:15 +0200 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-10-24 00:01:53 +0200 |
commit | b63dadd6f97522513fe9497b5fde84a154e39a0b (patch) | |
tree | d8d7dd10c79c522b20ce21d29aa06115424cc4f3 /kernel/bpf/tcx.c | |
parent | samples: bpf: Fix syscall_tp openat argument (diff) | |
download | linux-b63dadd6f97522513fe9497b5fde84a154e39a0b.tar.xz linux-b63dadd6f97522513fe9497b5fde84a154e39a0b.zip |
bpf, tcx: Get rid of tcx_link_const
Small clean up to get rid of the extra tcx_link_const() and only retain
the tcx_link().
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20231023185015.21152-1-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'kernel/bpf/tcx.c')
-rw-r--r-- | kernel/bpf/tcx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/tcx.c b/kernel/bpf/tcx.c index 1338a13a8b64..2e4885e7781f 100644 --- a/kernel/bpf/tcx.c +++ b/kernel/bpf/tcx.c @@ -250,7 +250,7 @@ static void tcx_link_dealloc(struct bpf_link *link) static void tcx_link_fdinfo(const struct bpf_link *link, struct seq_file *seq) { - const struct tcx_link *tcx = tcx_link_const(link); + const struct tcx_link *tcx = tcx_link(link); u32 ifindex = 0; rtnl_lock(); @@ -267,7 +267,7 @@ static void tcx_link_fdinfo(const struct bpf_link *link, struct seq_file *seq) static int tcx_link_fill_info(const struct bpf_link *link, struct bpf_link_info *info) { - const struct tcx_link *tcx = tcx_link_const(link); + const struct tcx_link *tcx = tcx_link(link); u32 ifindex = 0; rtnl_lock(); |