do_dup: plug redundant adjustment of fd_lastfile

By that time it was already set by fdalloc, or was there in the first place
if fd is replaced.

MFC after:	1 week
This commit is contained in:
mjg 2014-06-22 00:53:33 +00:00
parent 8563583ef9
commit 38cd838637

View File

@ -885,8 +885,6 @@ do_dup(struct thread *td, int flags, int old, int new,
newfde->fde_flags = oldfde->fde_flags | UF_EXCLOSE;
else
newfde->fde_flags = oldfde->fde_flags & ~UF_EXCLOSE;
if (new > fdp->fd_lastfile)
fdp->fd_lastfile = new;
*retval = new;
if (delfp != NULL) {