diff options
author | des <des@FreeBSD.org> | 2004-01-16 08:45:56 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-01-16 08:45:56 +0000 |
commit | 5af038f21added63f08bd826d3d748c044404156 (patch) | |
tree | 701d3faa121fb434b36046f7a4dbab6ff31552ba /sys | |
parent | f04f7ffd828f14c2d0dc40fc116148422a6b4f80 (diff) | |
download | FreeBSD-src-5af038f21added63f08bd826d3d748c044404156.zip FreeBSD-src-5af038f21added63f08bd826d3d748c044404156.tar.gz |
Remove two KASSERTs which were overly paranoid.
Diffstat (limited to 'sys')
-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 184b37b..93e7225 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) { |