svn commit: r237031 - head/sys/kern
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Jun 13 21:15:02 UTC 2012
Author: pjd
Date: Wed Jun 13 21:15:01 2012
New Revision: 237031
URL: http://svn.freebsd.org/changeset/base/237031
Log:
Remove duplicated code.
MFC after: 1 month
Modified:
head/sys/kern/vfs_syscalls.c
Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c Wed Jun 13 21:13:18 2012 (r237030)
+++ head/sys/kern/vfs_syscalls.c Wed Jun 13 21:15:01 2012 (r237031)
@@ -1161,17 +1161,9 @@ kern_openat(struct thread *td, int fd, c
flags, error_open)) == 0)
goto success;
}
- /*
- * Clean up the descriptor, but only if another thread hadn't
- * replaced or closed it.
- */
- if (indx != -1)
- fdclose(fdp, fp, indx, td);
- fdrop(fp, td);
-
if (error == ERESTART)
error = EINTR;
- return (error);
+ goto bad_unlocked;
}
td->td_dupfd = 0;
vfslocked = NDHASGIANT(&nd);
More information about the svn-src-all
mailing list