summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-08-13 23:16:59 +0000
committerrwatson <rwatson@FreeBSD.org>2006-08-13 23:16:59 +0000
commitff74569fb442f8ab132b3a0571f8acdabf709690 (patch)
tree06dac9bd4838be1b80480e22cb00b7b0d26df736 /sys/kern/uipc_usrreq.c
parent230593e64f2ac3d2fa66e8760e14267f14f2b14a (diff)
downloadFreeBSD-src-ff74569fb442f8ab132b3a0571f8acdabf709690.zip
FreeBSD-src-ff74569fb442f8ab132b3a0571f8acdabf709690.tar.gz
Minor white space tweaks.
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 0c52a03..723c132 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);
OpenPOWER on IntegriCloud