summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-07-04 04:30:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-07-04 04:30:42 +0000
commit6558208a6b4fc7625013eefd861685b315297077 (patch)
tree8fc25d47f546d697f926de0c28d92fbbbcd07d3f /sys/miscfs
parentef5f1b83a6551f7b66a6fb3c9960750efe43882a (diff)
bread does nothing with its ucred argument. remove it. ok matthew
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/specfs/spec_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index cb6a13a8e5b..dca9a50fb45 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.62 2011/04/05 14:14:07 thib Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.63 2011/07/04 04:30:41 tedu Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -240,9 +240,9 @@ spec_read(void *v)
if (vp->v_lastr + bscale == bn) {
nextbn = bn + bscale;
error = breadn(vp, bn, bsize, &nextbn, &bsize,
- 1, NOCRED, &bp);
+ 1, &bp);
} else
- error = bread(vp, bn, bsize, NOCRED, &bp);
+ error = bread(vp, bn, bsize, &bp);
vp->v_lastr = bn;
n = min(n, bsize - bp->b_resid);
if (error) {
@@ -325,7 +325,7 @@ spec_write(void *v)
bn = btodb(uio->uio_offset) & ~(bscale - 1);
on = uio->uio_offset % bsize;
n = min((bsize - on), uio->uio_resid);
- error = bread(vp, bn, bsize, NOCRED, &bp);
+ error = bread(vp, bn, bsize, &bp);
n = min(n, bsize - bp->b_resid);
if (error) {
brelse(bp);