diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0c52a03425c3..723c132ae7f7 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -263,7 +263,6 @@ uipc_attach(struct socket *so, int proto, struct thread *td) KASSERT(so->so_pcb == NULL, ("uipc_attach: so_pcb != NULL")); if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) { switch (so->so_type) { - case SOCK_STREAM: error = soreserve(so, unpst_sendspace, unpst_recvspace); break; @@ -288,8 +287,8 @@ uipc_attach(struct socket *so, int proto, struct thread *td) UNP_LOCK(); unp->unp_gencnt = ++unp_gencnt; unp_count++; - LIST_INSERT_HEAD(so->so_type == SOCK_DGRAM ? &unp_dhead - : &unp_shead, unp, unp_link); + LIST_INSERT_HEAD(so->so_type == SOCK_DGRAM ? &unp_dhead : &unp_shead, + unp, unp_link); UNP_UNLOCK(); return (0); @@ -1059,7 +1058,6 @@ unp_connect2(struct socket *so, struct socket *so2, int req) KASSERT(unp2 != NULL, ("unp_connect2: unp2 == NULL")); unp->unp_conn = unp2; switch (so->so_type) { - case SOCK_DGRAM: LIST_INSERT_HEAD(&unp2->unp_refs, unp, unp_reflink); soisconnected(so);