summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-31 18:06:34 +0000
committerbz <bz@FreeBSD.org>2009-01-31 18:06:34 +0000
commitfb1404080f89a63cdf36da668e5ff4fc65cfa4d9 (patch)
treea669d1cb3566d7a32204587f9842d6431bd3b390
parent9fd12161ca2cbe826e55cef701d4c1fdb6d79911 (diff)
downloadFreeBSD-src-fb1404080f89a63cdf36da668e5ff4fc65cfa4d9.zip
FreeBSD-src-fb1404080f89a63cdf36da668e5ff4fc65cfa4d9.tar.gz
After r186194 the *fs_strategy() functions always return 0.
So we are no longer interested in the error returned from the *fs_doio() functions. With that we can remove the error variable as its value is unused now. Submitted by: Christoph Mallon christoph.mallon@gmx.de
-rw-r--r--sys/fs/nwfs/nwfs_vnops.c3
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/nwfs/nwfs_vnops.c b/sys/fs/nwfs/nwfs_vnops.c
index 774ee1e..7ed5d85 100644
--- a/sys/fs/nwfs/nwfs_vnops.c
+++ b/sys/fs/nwfs/nwfs_vnops.c
@@ -784,7 +784,6 @@ static int nwfs_strategy (ap)
struct buf *bp=ap->a_bp;
struct ucred *cr;
struct thread *td;
- int error = 0;
NCPVNDEBUG("\n");
if (bp->b_flags & B_ASYNC)
@@ -801,7 +800,7 @@ static int nwfs_strategy (ap)
* otherwise just do it ourselves.
*/
if ((bp->b_flags & B_ASYNC) == 0 )
- error = nwfs_doio(ap->a_vp, bp, cr, td);
+ (void)nwfs_doio(ap->a_vp, bp, cr, td);
return (0);
}
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index 9b1e76d..0fd0233 100644
--- a/sys/fs/smbfs/smbfs_vnops.c
+++ b/sys/fs/smbfs/smbfs_vnops.c
@@ -850,7 +850,6 @@ smbfs_strategy (ap)
struct buf *bp=ap->a_bp;
struct ucred *cr;
struct thread *td;
- int error = 0;
SMBVDEBUG("\n");
if (bp->b_flags & B_ASYNC)
@@ -863,7 +862,7 @@ smbfs_strategy (ap)
cr = bp->b_wcred;
if ((bp->b_flags & B_ASYNC) == 0 )
- error = smbfs_doio(ap->a_vp, bp, cr, td);
+ (void)smbfs_doio(ap->a_vp, bp, cr, td);
return (0);
}
OpenPOWER on IntegriCloud