diff options
author | bz <bz@FreeBSD.org> | 2009-01-31 18:06:34 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-01-31 18:06:34 +0000 |
commit | fb1404080f89a63cdf36da668e5ff4fc65cfa4d9 (patch) | |
tree | a669d1cb3566d7a32204587f9842d6431bd3b390 /sys/fs/nwfs | |
parent | 9fd12161ca2cbe826e55cef701d4c1fdb6d79911 (diff) | |
download | FreeBSD-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
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r-- | sys/fs/nwfs/nwfs_vnops.c | 3 |
1 files changed, 1 insertions, 2 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); } |