summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-17 18:54:23 +0000
committerphk <phk@FreeBSD.org>2003-08-17 18:54:23 +0000
commitc0688ebf07f48d2ee1e9f15b8412796bc442a5ad (patch)
treed1a0b6cd1b3aeb0814c6d015e2cd16a06cc367cf /sys/vm
parent649bbcf5e840aa8ce8d96a5acc8864d821fcef55 (diff)
downloadFreeBSD-src-c0688ebf07f48d2ee1e9f15b8412796bc442a5ad.zip
FreeBSD-src-c0688ebf07f48d2ee1e9f15b8412796bc442a5ad.tar.gz
Use NULL for 3rd argument of VOP_BMAP() rather than custom cast.
Eliminate unused variable.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vnode_pager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 58f4518..76afce0 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -245,8 +245,7 @@ vnode_pager_haspage(object, pindex, before, after)
reqblock = pindex * blocksperpage;
}
VM_OBJECT_UNLOCK(object);
- err = VOP_BMAP(vp, reqblock, (struct vnode **) 0, &bn,
- after, before);
+ err = VOP_BMAP(vp, reqblock, NULL, &bn, after, before);
VM_OBJECT_LOCK(object);
if (err)
return TRUE;
@@ -390,7 +389,6 @@ vnode_pager_addr(vp, address, run)
int rtaddress;
int bsize;
daddr_t block;
- struct vnode *rtvp;
int err;
daddr_t vblock;
int voffset;
@@ -406,7 +404,7 @@ vnode_pager_addr(vp, address, run)
vblock = address / bsize;
voffset = address % bsize;
- err = VOP_BMAP(vp, vblock, &rtvp, &block, run, NULL);
+ err = VOP_BMAP(vp, vblock, NULL, &block, run, NULL);
if (err || (block == -1))
rtaddress = -1;
OpenPOWER on IntegriCloud