summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-03-04 01:57:48 +0000
committerrwatson <rwatson@FreeBSD.org>2004-03-04 01:57:48 +0000
commit48d4fe5ea448f21a218ac0210ce4ee9b2bdee3bd (patch)
tree419c3b31f09ff27911e969cfc4894259eb3ca9cb /sys
parentccdcd4491d3f3cf4705d6bc9aa7a093d69d3b6c0 (diff)
downloadFreeBSD-src-48d4fe5ea448f21a218ac0210ce4ee9b2bdee3bd.zip
FreeBSD-src-48d4fe5ea448f21a218ac0210ce4ee9b2bdee3bd.tar.gz
Remove unneeded label 'done2' from socket(). We now grab Giant
only around socreate(), and don't need it for file descriptor accesses. Submitted by: sam
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_syscalls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index 28ee964..78405a7 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -115,7 +115,7 @@ socket(td, uap)
fdp = td->td_proc->p_fd;
error = falloc(td, &fp, &fd);
if (error)
- goto done2;
+ return (error);
/* An extra reference on `fp' has been held for us by falloc(). */
mtx_lock(&Giant);
error = socreate(uap->domain, &so, uap->type, uap->protocol,
@@ -140,7 +140,6 @@ socket(td, uap)
td->td_retval[0] = fd;
}
fdrop(fp, td);
-done2:
return (error);
}
OpenPOWER on IntegriCloud