aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:24:33 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:24:33 +0000
commit1a180032407ba2dabd02e39c508fe232a9ef66ba (patch)
treef0b8ce9495c8461e98c5a122a1f2fef62dac3c1b /sys/compat/linux/linux_socket.c
parentab6c81a218fdb86607085694cff871a4e9944c45 (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 6e8169115ab1..36c1a91d6515 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -88,7 +88,6 @@ static int linux_recvmsg_common(struct thread *, l_int, struct l_msghdr *,
l_uint, struct msghdr *);
static int linux_set_socket_flags(int, int *);
-
static int
linux_to_bsd_sockopt_level(int level)
{
@@ -778,7 +777,6 @@ linux_socketpair(struct thread *td, struct linux_socketpair_args *args)
if (error != 0)
return (error);
if (args->protocol != 0 && args->protocol != PF_UNIX) {
-
/*
* Use of PF_UNIX as protocol argument is not right,
* but Linux does it.
@@ -1020,7 +1018,6 @@ linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
}
if (linux_msghdr.msg_controllen >= sizeof(struct l_cmsghdr)) {
-
error = ENOBUFS;
control = m_get(M_WAITOK, MT_CONTROL);
MCLGET(control, M_WAITOK);