Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 2014 16:04:28 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262692 - stable/10/sys/kern
Message-ID:  <201403021604.s22G4SRU046636@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sun Mar  2 16:04:27 2014
New Revision: 262692
URL: http://svnweb.freebsd.org/changeset/base/262692

Log:
  MFC r262005:
  
    Remove redundant memcpy of fd_ofiles in fdgrowtable()
  
  Approved by:	bapt (mentor, implicit)

Modified:
  stable/10/sys/kern/kern_descrip.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_descrip.c
==============================================================================
--- stable/10/sys/kern/kern_descrip.c	Sun Mar  2 15:53:39 2014	(r262691)
+++ stable/10/sys/kern/kern_descrip.c	Sun Mar  2 16:04:27 2014	(r262692)
@@ -1538,7 +1538,6 @@ fdgrowtable(struct filedesc *fdp, int nf
 	memcpy(nmap, omap, NDSLOTS(onfiles) * sizeof(*omap));
 
 	/* update the pointers and counters */
-	memcpy(ntable, otable, onfiles * sizeof(ntable[0]));
 	fdp->fd_ofiles = ntable;
 	fdp->fd_map = nmap;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403021604.s22G4SRU046636>