diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-01-16 08:45:56 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-01-16 08:45:56 +0000 |
| commit | ddce426f695e94ae7f0594b1d8fff30f025ef586 (patch) | |
| tree | 701d3faa121fb434b36046f7a4dbab6ff31552ba | |
| parent | 14f8ddcd0820ceb19ba3dc304103631549ae222a (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 184b37bd3104..93e72258efca 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -599,8 +599,6 @@ do_dup(td, type, old, new, retval) if (type == DUP_FIXED) { if (new >= fdp->fd_nfiles) fdgrowtable(fdp, new + 1); - KASSERT(new < fdp->fd_nfiles, - ("fdgrowtable() failed to grow table")); if (fdp->fd_ofiles[new] == NULL) fdused(fdp, new); } else { @@ -1436,8 +1434,6 @@ fdcopy(fdp) fdgrowtable(newfdp, fdp->fd_lastfile + 1); FILEDESC_LOCK(fdp); } - KASSERT(newfdp->fd_nfiles > fdp->fd_lastfile, - ("fdgrowtable() failed to grow table")); /* copy everything except kqueue descriptors */ newfdp->fd_freefile = -1; for (i = 0; i <= fdp->fd_lastfile; ++i) { |
