Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2014 23:10:46 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262005 - head/sys/kern
Message-ID:  <201402162310.s1GNAkbQ099173@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sun Feb 16 23:10:46 2014
New Revision: 262005
URL: http://svnweb.freebsd.org/changeset/base/262005

Log:
  Remove redundant memcpy of fd_ofiles in fdgrowtable() added in r247602
  
  Discussed with:	mjg
  Approved by:	bapt (mentor)
  MFC after:	2 weeks

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Sun Feb 16 23:08:21 2014	(r262004)
+++ head/sys/kern/kern_descrip.c	Sun Feb 16 23:10:46 2014	(r262005)
@@ -1537,7 +1537,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?201402162310.s1GNAkbQ099173>