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/smbfs | |
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/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |