From 227185b1bb4304ee393f1f82e3c9620ca301b2cd Mon Sep 17 00:00:00 2001 From: alc Date: Tue, 12 Feb 2002 05:50:43 +0000 Subject: Remove an unused (but initialized) variable from vmapbuf(). --- sys/amd64/amd64/vm_machdep.c | 8 +++----- 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. -- cgit v1.1