aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/smbfs/smbfs_vnops.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-01-31 18:06:34 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-01-31 18:06:34 +0000
commit13fd4d21637e98c03983ed6c5972695dfa232fe9 (patch)
treea669d1cb3566d7a32204587f9842d6431bd3b390 /sys/fs/smbfs/smbfs_vnops.c
parent7956d34b954b7183e5b12856f9b08eb9c0c35ac0 (diff)
downloadsrc-13fd4d21637e98c03983ed6c5972695dfa232fe9.tar.gz
src-13fd4d21637e98c03983ed6c5972695dfa232fe9.zip
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
Notes
Notes: svn path=/head/; revision=187960
Diffstat (limited to 'sys/fs/smbfs/smbfs_vnops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index 9b1e76d345e2..0fd023374d5e 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);
}