summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_subr.c
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/ntfs/ntfs_subr.c
parentef5f1b83a6551f7b66a6fb3c9960750efe43882a (diff)
bread does nothing with its ucred argument. remove it. ok matthew
Diffstat (limited to 'sys/ntfs/ntfs_subr.c')
-rw-r--r--sys/ntfs/ntfs_subr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/ntfs/ntfs_subr.c b/sys/ntfs/ntfs_subr.c
index 557b18c2ede..06bfda769b1 100644
--- a/sys/ntfs/ntfs_subr.c
+++ b/sys/ntfs/ntfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_subr.c,v 1.23 2010/09/09 11:31:40 miod Exp $ */
+/* $OpenBSD: ntfs_subr.c,v 1.24 2011/07/04 04:30:41 tedu Exp $ */
/* $NetBSD: ntfs_subr.c,v 1.4 2003/04/10 21:37:32 jdolecek Exp $ */
/*-
@@ -292,9 +292,8 @@ ntfs_loadntnode(
bn = ntfs_cntobn(ntmp->ntm_mftcn) +
ntmp->ntm_bpmftrec * ip->i_number;
- error = bread(ntmp->ntm_devvp,
- bn, ntfs_bntob(ntmp->ntm_bpmftrec),
- NOCRED, &bp);
+ error = bread(ntmp->ntm_devvp, bn,
+ ntfs_bntob(ntmp->ntm_bpmftrec), &bp);
if (error) {
printf("ntfs_loadntnode: BREAD FAILED\n");
brelse(bp);
@@ -1509,7 +1508,7 @@ ntfs_writentvattr_plain(
clrbuf(bp);
} else {
error = bread(ntmp->ntm_devvp, ntfs_cntobn(cn),
- ntfs_cntob(cl), NOCRED, &bp);
+ ntfs_cntob(cl), &bp);
if (error) {
brelse(bp);
return (error);
@@ -1618,7 +1617,7 @@ ntfs_readntvattr_plain(
error = bread(ntmp->ntm_devvp,
ntfs_cntobn(cn),
ntfs_cntob(cl),
- NOCRED, &bp);
+ &bp);
if (error) {
brelse(bp);
return (error);