aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-06-07 23:33:10 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-06-07 23:33:10 +0000
commitbf3e37ef151052ebe6003defb9d06cb4d5acd0a7 (patch)
tree849b68c7c4592271e6fed50df9ece8e8f812c7e3 /sys
parentd3644b04ca1aec8f84dc9964f0e45efc98e159db (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_descrip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 76c5db2876b6..c6ea16afc388 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1554,9 +1554,8 @@ fdalloc(struct thread *td, int minfd, int *result)
*/
KASSERT(!fdisused(fdp, fd),
("fd_first_free() returned non-free descriptor"));
- KASSERT(fdp->fd_ofiles[fd] == NULL,
- ("free descriptor isn't"));
- fdp->fd_ofileflags[fd] = 0; /* XXX needed? */
+ KASSERT(fdp->fd_ofiles[fd] == NULL, ("free descriptor isn't"));
+ KASSERT(fdp->fd_ofileflags[fd] == 0, ("file flags are set"));
fdused(fdp, fd);
*result = fd;
return (0);