diff options
author | alc <alc@FreeBSD.org> | 2009-06-13 20:21:08 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-13 20:21:08 +0000 |
commit | 9ec14df4c87905061d1ea0e1a1c3750ee961a7db (patch) | |
tree | b1df10d47c7e34deb15835647562884509bf0164 | |
parent | 46cf688d110bbc0895acaeca4e2265a6d5dd1037 (diff) | |
download | FreeBSD-src-9ec14df4c87905061d1ea0e1a1c3750ee961a7db.zip FreeBSD-src-9ec14df4c87905061d1ea0e1a1c3750ee961a7db.tar.gz |
Eliminate unnecessary variables.
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index a00ba2f..db8ceea 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -468,8 +468,7 @@ nocache: m = vm_page_grab(tobj, idx, VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_NORMAL | VM_ALLOC_RETRY); if (m->valid != VM_PAGE_BITS_ALL) { - int behind, ahead; - if (vm_pager_has_page(tobj, idx, &behind, &ahead)) { + if (vm_pager_has_page(tobj, idx, NULL, NULL)) { error = vm_pager_get_pages(tobj, &m, 1, 0); if (error != 0) { printf("tmpfs get pages from pager error [read]\n"); @@ -583,8 +582,7 @@ nocache: tpg = vm_page_grab(tobj, idx, VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_NORMAL | VM_ALLOC_RETRY); if (tpg->valid != VM_PAGE_BITS_ALL) { - int behind, ahead; - if (vm_pager_has_page(tobj, idx, &behind, &ahead)) { + if (vm_pager_has_page(tobj, idx, NULL, NULL)) { error = vm_pager_get_pages(tobj, &tpg, 1, 0); if (error != 0) { printf("tmpfs get pages from pager error [write]\n"); |