summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2005-03-08 16:57:20 +0000
committerkeramida <keramida@FreeBSD.org>2005-03-08 16:57:20 +0000
commit29c09959986c1ae26b219b240e9e00ab79e89524 (patch)
tree459a010130f3fddaf7e34b5b36537f0eca0a4dd9 /sys/kern/kern_descrip.c
parent1dd03a69ac63e2987756ed32e779c1cdcceb118e (diff)
downloadFreeBSD-src-29c09959986c1ae26b219b240e9e00ab79e89524.zip
FreeBSD-src-29c09959986c1ae26b219b240e9e00ab79e89524.tar.gz
Remove redundant initialization that is repeated in the for() loop
right below it. Approved by: jhb
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 3ba32de..c23dd90 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1543,8 +1543,6 @@ fdfree(struct thread *td)
fdtol->fdl_refcount));
if (fdtol->fdl_refcount == 1 &&
(td->td_proc->p_leader->p_flag & P_ADVLOCK) != 0) {
- i = 0;
- fpp = fdp->fd_ofiles;
for (i = 0, fpp = fdp->fd_ofiles;
i <= fdp->fd_lastfile;
i++, fpp++) {
OpenPOWER on IntegriCloud