diff options
author | keramida <keramida@FreeBSD.org> | 2005-03-08 16:57:20 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-03-08 16:57:20 +0000 |
commit | 29c09959986c1ae26b219b240e9e00ab79e89524 (patch) | |
tree | 459a010130f3fddaf7e34b5b36537f0eca0a4dd9 /sys/kern/kern_descrip.c | |
parent | 1dd03a69ac63e2987756ed32e779c1cdcceb118e (diff) | |
download | FreeBSD-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.c | 2 |
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++) { |