From d8cb95cb17021344559f9414e80768f023fce14d Mon Sep 17 00:00:00 2001 From: bdrewery Date: Sun, 16 Feb 2014 23:10:46 +0000 Subject: [PATCH] Remove redundant memcpy of fd_ofiles in fdgrowtable() added in r247602 Discussed with: mjg Approved by: bapt (mentor) MFC after: 2 weeks --- sys/kern/kern_descrip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index abaf805e61b..16d6dd91610 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1537,7 +1537,6 @@ fdgrowtable(struct filedesc *fdp, int nfd) 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; -- 2.45.0