diff options
author | alc <alc@FreeBSD.org> | 2002-02-12 05:50:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-02-12 05:50:43 +0000 |
commit | 227185b1bb4304ee393f1f82e3c9620ca301b2cd (patch) | |
tree | 9dba01d117202a58f59af6f4d8990951a67b0244 | |
parent | f3e9446326ff27ba941a96a410fe268101848f7c (diff) | |
download | FreeBSD-src-227185b1bb4304ee393f1f82e3c9620ca301b2cd.zip FreeBSD-src-227185b1bb4304ee393f1f82e3c9620ca301b2cd.tar.gz |
Remove an unused (but initialized) variable from vmapbuf().
-rw-r--r-- | sys/amd64/amd64/vm_machdep.c | 8 | ||||
-rw-r--r-- | sys/i386/i386/vm_machdep.c | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index 3c861ba..01e4b30 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -345,7 +345,7 @@ void vmapbuf(bp) register struct buf *bp; { - register caddr_t addr, v, kva; + register caddr_t addr, kva; vm_offset_t pa; int pidx; struct vm_page *m; @@ -355,11 +355,9 @@ vmapbuf(bp) if ((bp->b_flags & B_PHYS) == 0) panic("vmapbuf"); - for (v = bp->b_saveaddr, - addr = (caddr_t)trunc_page((vm_offset_t)bp->b_data), - pidx = 0; + for (addr = (caddr_t)trunc_page((vm_offset_t)bp->b_data), pidx = 0; addr < bp->b_data + bp->b_bufsize; - addr += PAGE_SIZE, v += PAGE_SIZE, pidx++) { + addr += PAGE_SIZE, pidx++) { /* * Do the vm_fault if needed; do the copy-on-write thing * when reading stuff off device into memory. diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 3c861ba..01e4b30 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -345,7 +345,7 @@ void vmapbuf(bp) register struct buf *bp; { - register caddr_t addr, v, kva; + register caddr_t addr, kva; vm_offset_t pa; int pidx; struct vm_page *m; @@ -355,11 +355,9 @@ vmapbuf(bp) if ((bp->b_flags & B_PHYS) == 0) panic("vmapbuf"); - for (v = bp->b_saveaddr, - addr = (caddr_t)trunc_page((vm_offset_t)bp->b_data), - pidx = 0; + for (addr = (caddr_t)trunc_page((vm_offset_t)bp->b_data), pidx = 0; addr < bp->b_data + bp->b_bufsize; - addr += PAGE_SIZE, v += PAGE_SIZE, pidx++) { + addr += PAGE_SIZE, pidx++) { /* * Do the vm_fault if needed; do the copy-on-write thing * when reading stuff off device into memory. |