Skip to content

Commit 19039f2

Browse files
mmhalborkmann
authored andcommitted
bpf, vsock: Drop static vsock_bpf_prot initialization
vsock_bpf_prot is set up at runtime. Remove the superfluous init. No functional change intended. Fixes: 634f1a7 ("vsock: support sockmap") Signed-off-by: Michal Luczaj <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 6dafde8 commit 19039f2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

net/vmw_vsock/vsock_bpf.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,6 @@ static int vsock_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
114114
return copied;
115115
}
116116

117-
/* Copy of original proto with updated sock_map methods */
118-
static struct proto vsock_bpf_prot = {
119-
.close = sock_map_close,
120-
.recvmsg = vsock_bpf_recvmsg,
121-
.sock_is_readable = sk_msg_is_readable,
122-
.unhash = sock_map_unhash,
123-
};
124-
125117
static void vsock_bpf_rebuild_protos(struct proto *prot, const struct proto *base)
126118
{
127119
*prot = *base;

0 commit comments

Comments
 (0)