aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index d1f32cf3d711..4a1c480c43fa 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1001,10 +1001,8 @@ uipc_sosend_stream_or_seqpacket(struct socket *so, struct sockaddr *addr,
MPASS((uio != NULL && m == NULL) || (m != NULL && uio == NULL));
MPASS(m == NULL || c == NULL);
- if (__predict_false(flags & MSG_OOB)) {
- error = EOPNOTSUPP;
- goto out;
- }
+ if (__predict_false(flags & MSG_OOB))
+ return (EOPNOTSUPP);
nonblock = (so->so_state & SS_NBIO) ||
(flags & (MSG_DONTWAIT | MSG_NBIO));